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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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