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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date Format in Script

Hello,

I would like to create a variable on my script with a specific Date Format. I tried this:

Capture.PNG

But when i look into the data structure i see this:

Capture.PNG

The Format doesn't work :/.

I need this because i do a check between two variables:

AsOf_E = Last_Update_Projection

And AsOf_E is configured like this:

Capture.PNG

Thanks you in advance for your help,

Sébastien.

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda
MVP
MVP

just Date function will work

MaxDate:

LOAD

Date(Max(AsOf_E) ,'DD/MM/YYY')  as [LastAsOf]

...



LET Last_Update_Projection = peek('LastAsOf',0,'MaxDate');

View solution in original post

7 Replies
PrashantSangle
MVP
MVP

Hi,

Use date() instead of date#()

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
MK_QSL
MVP
MVP

Date(Date#(Max(AsOf_E,'DD/MM/YYYY')) as

Chanty4u
MVP
MVP

try

Load,

Date(Date#(Max(Asof_E,'Dateformat')) as new

Kushal_Chawda
MVP
MVP

just Date function will work

MaxDate:

LOAD

Date(Max(AsOf_E) ,'DD/MM/YYY')  as [LastAsOf]

...



LET Last_Update_Projection = peek('LastAsOf',0,'MaxDate');

Not applicable
Author

Hi ,

Load Date(Date#(Max(Asof_E,'DD/MM/YYYY')) as [LastAsOf]

sunny_talwar
MVP
MVP

I think Manish you forgot to close Max() function

sunny_talwar
MVP
MVP

Not sure if Date#() function is still required to interpret the date.

Date(Date#(Max(AsOf_E),'DD/MM/YYYY'), 'DD/MM/YYYY') as [LastAsOf]