Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
haymarketpaul
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
haymarketpaul
Creator III
Creator III
Author

 

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
haymarketpaul
Creator III
Creator III
Author

 

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],