Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
Coming your way, the Qlik Data Revolution Virtual Summit. October 27-29. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator III
Creator III

Changing Date Format

QV12 SR4

I've got some dates in this format:-

Fri Feb 08 2019 14:37:53 GMT+0000 (UTC)

I need just the date portion in this format:-

DD/MM/YYYY

Thought i might be able to do this sort of thing but they all end up blank for some reason?

Date(Date#(SubField(Mid(MyRegDate,4,Len(MyRegDate)),' G',1),'MMM DD YYYY hh:mm:ss'),'DD/MM/YYYY') as [Reg Date],

Any ideas

Labels (2)
1 Solution

Accepted Solutions
Highlighted
Creator III
Creator III

 

Just had the wrong number in the Mid statement...

 

Date(Date#(SubField(Mid(MyRegDate,5,Len(MyRegDate)),' G',1),'MMM DD YYYY hh:mm:ss'),'DD/MM/YYYY') as [Reg Date],

View solution in original post

1 Reply
Highlighted
Creator III
Creator III

 

Just had the wrong number in the Mid statement...

 

Date(Date#(SubField(Mid(MyRegDate,5,Len(MyRegDate)),' G',1),'MMM DD YYYY hh:mm:ss'),'DD/MM/YYYY') as [Reg Date],

View solution in original post