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: 
dseelam
Creator II
Creator II

Date Format

Hello Qlik folks,

My date format is set as MM/DD/YYYY & =today() is giving me 09/10/2018

why =num(month(today())) giving me just 9, what I need is 09

Thanks,

D

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

num don't gives you preceding Zeros, just 9 as integer

using date(today(),'MM') gives you 09

View solution in original post

3 Replies
Frank_Hartmann
Master II
Master II

num(month(today()),'00')

Anonymous
Not applicable

num don't gives you preceding Zeros, just 9 as integer

using date(today(),'MM') gives you 09

dseelam
Creator II
Creator II
Author

Thank you