Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Everyone,
I am having DOB from excel and formatting it like this:
date(Date#(DOB,'DD/MMM/YYYY')) as Test,
After running it I am getting Test as a blank field..any suggestion?
Regards,
Balraj Ahlawat
Hi,
There is no need of Num() while converting Dates, Date#() itself gives you the numeric date. So the script should be
date(date#(DOB, 'Excel Format') ,'Required Format') as DOB
Regards,
Jagan.
Hi Balraj,
Simply try,
Date(DOB) as Test,
again Blank
I am having one more field of Date from same excel and into same format, which is working fine
But not on this field
Try:
load *, Date(Alt(Date#(DOB, 'DD/MMM/YYYY'), Date#(DOB, 'DD/MMM/YYYY'), Date#(DOB, 'DD/MMM/YYYY')), 'DD-MM-YYYY') as Test;
Thanks,
AS
check your excel date format whether it is 'DD/MMM/YYYY' becuase date# is interpreting date check with this thread
Re: Date#() function: Worng type of output
HTH
Vikas
No luck, again blank.
If I am loading the field without any formatting, it is coming into string format...
And If I am applying any formatting, coming blank
can you try to change excel format -> Custom -> DD/MM/YYYY and then check
Share your sample excel and let us check how exactly the DOB data is coming from there.
Recently I also got such issue resolved with changing format date in excel DD/MM/YYYY and appy date#