Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
_armoco_
Partner - Creator II
Partner - Creator II

Date conversion issue

Hi all,

Unable to convert date to MM/DD/YYYY format. Tried with date# and then date and for some reason its not working out.

What am I missing?

Please find the attached QVD.

Thanks and Regards,

Arjun

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

LOAD [Sr. No],

     //Date,

     Date(Date#(Date,'D-MMM-YY')) as Date,

     Attendance

FROM

Data.qvd

(qvd);

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

5 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

LOAD [Sr. No],

     //Date,

     Date(Date#(Date,'D-MMM-YY')) as Date,

     Attendance

FROM

Data.qvd

(qvd);

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
hemeshreddy
Partner - Contributor III
Partner - Contributor III

try with

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

Regards,

Hemesh

devarasu07
Master II
Master II

Hi,

you can try like below,

load *, Date(Date#(Date,'DD-MMM-YYYY'),'DD/MM/YYYY') as NewDate;

LOAD [Sr. No],

     Date,

     Attendance

FROM

(qvd);

Capture.JPG

_armoco_
Partner - Creator II
Partner - Creator II
Author

Woah! I missed out MMM and was trying with MM. Thanks guys!

devarasu07
Master II
Master II

Hi,

Fine, can you close this thread by marking helpful and correct for the replies.  Thanks