Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Change Date Format to MM-YYYY in Qlik Sense

Good day to Qlik Expert,

I would like to change the below date format to MM-YYYY in Qlik Sense, so that I could use this for one of my Dimension.

Do you know how should I do this please? Thank you very much in advance. Cheers!

Open Date
3/1/2018 14:55
2/1/2018 16:23
29/12/17 16:43:21
29/12/17 13:32:56
26/12/17 10:59:12
25/12/17 17:07:13
22/12/17 16:03:16
22/12/17 01:36:59
21/12/17 15:46:16
21/12/17 13:33:12
21/12/17 09:14:25
9 Replies
pradosh_thakur
Master II
Master II

date(floor(alt(timestamp#(Open Date,'DD/MM/YYYY hh:mm),timestamp#(Open Date,'DD/MM/YYYY hh:mm:ss)),'MM-YYYY')

OR


TIMESTAMP(alt(timestamp#(Open Date,'DD/MM/YYYY hh:mm),timestamp#(Open Date,'DD/MM/YYYY hh:mm:ss)),'MM-YYYY')



Learning never stops.
antonaks
Creator II
Creator II

Hi!

Try use Date(DateField, 'MM-YYYY')

Ivan_Bozov
Luminary
Luminary

Hi! Try this line in the load script:


Timestamp(Timestamp#([Open Date], 'DD/MM/YY hh:mm:ss') ,'MM-YYYY') AS [Open Date]

vizmind.eu
antonaks
Creator II
Creator II

I think that will work. At first I did not pay attention to the date format

Anonymous
Not applicable
Author

Thank you Ivan!

Anonymous
Not applicable
Author

Thank you Pradosh!

Anonymous
Not applicable
Author

Thank you Anton!

Ivan_Bozov
Luminary
Luminary

You are welcome!

vizmind.eu
AlexO84
Contributor II
Contributor II

This worked perfectly, thanks!

I did a subtraction of dates using your method:

AlexO84_0-1648982442574.png