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: 
hkg_qlik
Creator III
Creator III

Modify Date

Hi all,

I have a calendar table with date field as YYYY/MM/DD (Data Warehouse table)

I would like to convert all dates into MM/DD/YYYY while loading the table from DW.

Regards,

H

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi

Try like this

Date(DateField,'MM/DD/YYYY')  // If its in date format.

or

Date(Date#(DateField,'YYYY/MM/DD'),'MM/DD/YYYY') // If its not in date format

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

View solution in original post

3 Replies
MayilVahanan
MVP
MVP

Hi

Try like this

Date(DateField,'MM/DD/YYYY')  // If its in date format.

or

Date(Date#(DateField,'YYYY/MM/DD'),'MM/DD/YYYY') // If its not in date format

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

Hi Mayil,

Thanks for the solution---- > Date(Date#(DateField,'YYYY/MM/DD'),'MM/DD/YYYY')

If I want to convert it to MM/DD/YY 00:00:00 ?

Regards.

H

MayilVahanan
MVP
MVP

Hi

Try like this

Date(Date#(DateField,'YYYY/MM/DD'),'MM/DD/YYYY hh:mm:ss')

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