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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load yyyy-mm-dd as mm/dd/yyyy

Hi how would I load my dates as above ?

I have tried Date(date#(Date,'YYYY-MM-DD'), 'MM/DD/YYYY') but to no avail

18 Replies
sasiparupudi1
Master III
Master III

try

Date(Date#(trim(Date),'YYYY-DD-MM'), 'MM/DD/YYYY')

sasiparupudi1
Master III
Master III

your date format is YYYY-DD-MM which is odd

MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_181690_Pic1.JPG

LOAD Region,

    Country,

    [Company Code],

    Date(Date#(Date,'YYYY-DD-MM'),'MM/DD/YYYY') as Date

FROM [https://community.qlik.com/servlet/JiveServlet/download/871115-186085/test.xlsx] (ooxml, embedded labels, table is Sheet1);

or simply

LOAD Region,

     Country,

     [Company Code],

     Date(Date#(Date,'YYYY-DD-MM')) as Date

FROM [https://community.qlik.com/servlet/JiveServlet/download/871115-186085/test.xlsx] (ooxml, embedded labels, table is Sheet1);

if your DateFormat variable already holds the required format.

hope this helps

regards

Marco

Digvijay_Singh

If possible can you correct the Title of this issue, as the source date format is not rightly mentioned which you have in your data, try like this -

=Date(date#('2015-21-09','YYYY-DD-MM'),'MM/DD/YYYY')

SreeniJD
Specialist
Specialist

Pretty Simple... try this for your sample data.. it will display correct results!

=Date(date#(Date,'YYYY-DD-MM'),'MM/DD/YYYY')

Happy to help!

avinashelite

Please find the attachment for the solution

Not applicable
Author

Solution.JPG

= Date(date#(Date,'YYYY-DD-MM'),'MM/DD/YYYY')

Not applicable
Author

Thanks for your help ... School boy error on my part as I had the input date as yyyy-mm-dd rather than yyyy-dd-mm

sasiparupudi1
Master III
Master III

Please close this thread marking your resolution as the correct answer