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

Date

Why this expression does not return a value in a text object?

date(Date#('01' & '/' & Month(ReloadTime()) & '/' & Year(ReloadTime()),'DD/MM/YYYY'))

Labels (1)
3 Replies
pedrolau
Partner - Contributor III
Partner - Contributor III

Hi Pedro, try this:  date(monthstart(ReloadTime()),'DD/MM/YYYY')

pedrolau
Partner - Contributor III
Partner - Contributor III

If you still want to use your code, you need to use a NUM for the month since this is a dual value, like this:

date(Date#('01' & '/' & NUM(Month(ReloadTime())) & '/' & Year(ReloadTime()),'DD/MM/YYYY'))

mokitsu61
Creator
Creator

How about using Text().

Reference says Date() returns Date object.

Text(Date#('01' & '/' & Month(ReloadTime()) & '/' & Year(ReloadTime()),'DD/MM/YYYY'))