Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 101540

Forum Post: RE: Any2Date and any2int64 conversions behave differently when executed on run to screen and when executed in batch

$
0
0
Hi As Dauvis said, the Batch process running in CIL, so .NET Language. As per my esperience, it's always suggest to use the .NET methods in order to avoid different behaviour between CIL or not. So, in your case, try with : utcDateTime c; Date d; System.Globalization.CultureInfo culture = System.Globalization.CultureInfo::get_InvariantCulture(); c = System.DateTime::ParseExact( ResultSet....., 'M/d/yyyy', culture); d = DateTimeUtil::date(c);

Viewing all articles
Browse latest Browse all 101540

Trending Articles