Pages

Wednesday, 17 September 2014

Converting Date to UTCTimeDate

SomeTime we need to converting  normal SystemDate to UtcDateTime.Here Am show you how to convert that date.In Dynamics Ax having some Class DateTimeUtil.

Example:

              DateTimeUtil::NewDateTime(today(),0,DateTimeUtil::getCompanyTimeZone()));


Static void DateConvert(Args _args)
{
                info(strfmt("%1",DateTimeUtil::newDateTime(today(),0,DateTimeUtil::getCompanyTimeZone())));

}

No comments:

Post a Comment