Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

convert GMT format to date format

Dear community,

I want to convert a field in this format 'Fri Apr 02 00:00:00 GMT 2021' to a date format, like this '02.04.2021'

Thanks for any help

Felipe

Labels (1)
1 Solution

Accepted Solutions
brunobertels
Master
Master

Hello 

Try this 

date(
makedate(right('Fri Apr 02 00:00:00 GMT 2021',4), // to get year


num(month(date#(
subfield('Fri Apr 02 00:00:00 GMT 2021',' ',2),
'MMM'))), // To get Month 


subfield('Fri Apr 02 00:00:00 GMT 2021',' ',3) // to get Day 
),'DD/MM/YYYY') 

 

replace 'Fri Apr 02 00:00:00 GMT 2021' by your actual date dimension

 

Result :

brunobertels_0-1653385178290.png

 

View solution in original post

1 Reply
brunobertels
Master
Master

Hello 

Try this 

date(
makedate(right('Fri Apr 02 00:00:00 GMT 2021',4), // to get year


num(month(date#(
subfield('Fri Apr 02 00:00:00 GMT 2021',' ',2),
'MMM'))), // To get Month 


subfield('Fri Apr 02 00:00:00 GMT 2021',' ',3) // to get Day 
),'DD/MM/YYYY') 

 

replace 'Fri Apr 02 00:00:00 GMT 2021' by your actual date dimension

 

Result :

brunobertels_0-1653385178290.png