Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

use str2Date function with date imported from excel

$
0
0

I try to use the following code to get date from excel sheet but the date value after using str2date is empty although sEmpDate value is "04/04/1993"

 

date  EmpDate;

str   sEmpDate; 

 

 

sEmpDate=cells.item(row, 3).value().bStr();           

EmpDate=str2Date(sEmpDate,123);

info(strFmt("%1",sEmpDate));       

info(strFmt("%1",EmpDate));


Viewing all articles
Browse latest Browse all 72043


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>