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: 
evansabres
Specialist
Specialist

Date in Script

Date(Interval(nwEVENTDTE - 56, 'd'),'mm/dd/yyyy')AS

EightWeeks

A line in my script appears as above. However, when I load the script and view the data, the field displays as 00/03/2016, which should be 11/03/2016.

Am I formatting this incorrectly in the script?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Format code for month is MM, not mm (which denotes minutes):

'MM/DD/YYYY'

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Format code for month is MM, not mm (which denotes minutes):

'MM/DD/YYYY'

swuehl
Champion III
Champion III

Besides this, no need to format the inner calculation:

Date(nwEVENTDTE - 56,'MM/DD/YYYY') AS EightWeeks