How to convert from date to utcDateTime and back

// convert
DateTimeUtil::newDateTime(today(), 0, DateTimeUtil::getCompanyTimeZone());
// get current
DateTimeUtil::getSystemDateTime();
// utcDateTime to date
DateTimeUtil::date(DateTimeUtil::getSystemDateTime()); 

 

Search

About

DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.

Authors are allowed to set their own AdSense units.
Join us.

Blog Tags