Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change date format in qvw


Hi,

I have date column in sql table like below

Oct 22 2008 12:00AM

I need to have date in qlikview application as 2008/10/22

Could anyone help me how to write in script.

Thanks

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Load

          Date(Date#(FieldFromDB, 'MMM DD YYYY hh:mmTT'), 'YYYY/MM/DD') as NewDate

;

SQL Select

  '''

From <>;

View solution in original post

8 Replies
tresesco
MVP
MVP

Try like:

Load

          Date(Date#(FieldFromDB, 'MMM DD YYYY hh:mmTT'), 'YYYY/MM/DD') as NewDate

;

SQL Select

  '''

From <>;

MayilVahanan

Hi

Try like this

Instead of Oct 22 2008 12:00AM -> Use your datefield

Date(Date#('Oct 22 2008 12:00AM','MMM DD YYYY hh:mmTT'),'YYYY/MM/DD')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Load

          Date(Date#(FieldFromDB, 'MMM DD YYYY hh:mm TT'), 'YYYY/MM/DD') as New_Date;

SQL Select

  '''

From <>;

This should work.

Not applicable
Author

Not applicable
Author

Thanks and it's working but I can able to see 2059/09/12 and 2069/19/01 and not able to see the date 29/09/2013 which exists in ly table. Please help in this

Not applicable
Author

Thanks and it's working but I can able to see 2059/09/12 and 2069/19/01 and not able to see the date 29/09/2013 which exists in ly table. Please help in this

tresesco
MVP
MVP

Ideally, there should have been a space before 'TT'. Try and let know if that was the issue.

Not applicable
Author

Yup.

And thats what I posted.