Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
try
Date(Date#(trim(Date),'YYYY-DD-MM'), 'MM/DD/YYYY')
your date format is YYYY-DD-MM which is odd
Hi,
one solution could be:
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
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')
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!
Please find the attachment for the solution
= Date(date#(Date,'YYYY-DD-MM'),'MM/DD/YYYY')
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
Please close this thread marking your resolution as the correct answer