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

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...