Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi folks,
I have date values like below.
Date field
2/01/2011
02/01/2011
03/01/2011
04/01/2011
05/01/2011
5/1/2011
here once i loaded all the data into qlikview.i am getting some date format issues.in date field list box i am getting the
02/01/2011 and 2/01/2011 (but both are same)
05/01/2011 and 5/1/2011 (but both are same)
can u plz give me idea on it how can i convert this dates into one format only.
Hi,
Use date(Date#(DateField,'D/M/YYYY'),'DD/MM/YYYY')
Regards
Load distinct Right('0' & Date,10) As Date Inline [
Date
2/01/2011
02/1/2011
02/01/2011
03/01/2011
04/01/2011
05/01/2011
5/1/2011 ];
I tried but it is not giving the proper result
Hi,
use Date(Alt(
Date#(DateField,'D/M/YYYY'),
Date#(DateField,'DD/MM/YYYY')
),'DD/MM/YYYY')
Regards
hi,
thanks for ur reply
but 5/1/2011 how can i get it?
the above logic vl not for the 5/1/2011 i guess
Hi,
Try my reply with alt()
This will surely work.
Regards
Hi,
You can try this in script .
Dates:
Load * Inline [
dates
2/01/2011
02/01/2011
03/01/2011
04/01/2011
05/01/2011
5/1/2011
];
temp:
LOAD
Date(Date#(dates,'d/mm/yyyy'),'dd-mm-yyyy') as date
Resident Dates;
Hi,
You can try in list box also.