Skip to main content

Hi Team,

 

I am facing problem while creating custom SQL. I want to convert string column in date which is in excel.

E.g.

Select DATE(

(RIGHT([Data_EMP$].[Period]),2))

+'/01/'+

(LEFT([Data_EMP$].[Period]),4)

) AS [PERIOD]

FROM [Data_EMP$]

 

This is not working. Please help me in DATE Function or need any other function..

 

Thank you in advance.

3 answers
  1. Jun 1, 2015, 2:47 PM

    Laukik,

     

    Welcome to the forums!

     

    You might try the CDATE() function.  I believe it will work in custom SQL for Excel.

     

    Regards,

    Joshua

0/9000