Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I had a date field with some rows in excel
1) 1-8 it shows as string M/DD/YYYY
2) 9-10 it shows as text YYYYMMDD
Could you please help me in converting this into 'MM/DD/YYYY' format.
Thanks,
Pavan
Try this
Load *,Date(Alt(Date#(Date,'MM/DD/YYYY'),Date#(Date,'YYYYMMDD')),'MM/DD/YYYY') as Date1;
LOAD * INLINE [
Date
01/01/2016
01/02/2016
01/03/2016
01/04/2016
01/05/2016
20160106
20160107
20160108
20160109
20160110
];
Try this
In load script,
Date(Alt(Date#(datefield,'M/DD/YYYY'),Date#(datefield,'YYYYMMDD'),'MM/DD/YYYY' )) As newdate
Hope this helps.