Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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'))

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'))