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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Aspiring_Developer
Specialist
Specialist

Date function issue in qliksense

Hello All,

I am facing a very weird problem. Here is my date field in script:-

Date= {"$(=(Max(Date)))"}  

Aspiring_Developer_0-1623072661567.png

monthstart(addmonths(max(Date),-12))

Aspiring_Developer_1-1623073158316.png

Whenever i am using addmonths , it is changing my date format.

I have tried date () also , but still it is giving me same output. How can I manage this ?

Can anyone please help me ?

 

 

 

1 Solution

Accepted Solutions
Or
MVP
MVP

You should be able to explicitly format the date using Date(YourDate,'MM/DD/YYYY') or Date(YourDate,'DD/MM/YYYY') as appropriate.

If you prefer, check your default app date format (set in the script) and change the format to whichever is appropriate.

View solution in original post

1 Reply
Or
MVP
MVP

You should be able to explicitly format the date using Date(YourDate,'MM/DD/YYYY') or Date(YourDate,'DD/MM/YYYY') as appropriate.

If you prefer, check your default app date format (set in the script) and change the format to whichever is appropriate.