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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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'))