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: 
anthony_kinsell
Creator
Creator

Date formatting problem

Hi,

I'm trying to format a date & had entered the below script:

ATDATE,
Date(Left(ATDATE,10),'DD/MM/YYYY') as Date,

However this doesn't seem to be having any effect on the data - see table extract below:

Anyone any ideas as to what I'm doing wrong / missing?

Cheers

Anthony

Labels (1)
7 Replies
Colin-Albert
Partner - Champion
Partner - Champion

It looks like ATDATE is already formatted as a date.

Try      date(ATDATE) as NewDate

Not applicable

Hello,

Date(Date#(Left(ATDATE,10),'DD/MM/YYYY'),'DD/MM/YYYY') as Date,

Colin-Albert
Partner - Champion
Partner - Champion

avinashelite
MVP
MVP

use Date#() and then date this will do

Date(Date#(Left(ATDATE,10),'DD/MM/YYYY'),'DD/MM/YYYY') as Date

Anonymous
Not applicable

can you post a sample qvw

anthony_kinsell
Creator
Creator
Author

Thanks for the replies,

Unfortunately none of the suggestions work

avinashelite
MVP
MVP

can you please share the sample data