Skip to main content
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

1 Solution

Accepted Solutions
MayilVahanan

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

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

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.