Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Wednesday, February 25, 2015

System date is different current zone date in AX

Hi,

static void AlfasithDateCompOfTodayWithServerTime(Args _args)
{
    utcDateTime startdate = DateTimeUtil::getSystemDateTime();
    print startdate;
    print DateTimeUtil::applyTimeZoneOffset(StartDate, DateTimeUtil::getUserPreferredTimeZone());
    pause;
}


Note: Same print statement whereas different value has been printed.

Regards,


No comments:

Post a Comment

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...