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())));
}
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