Tuesday, November 21, 2017

Convert Date to UTCDateTime : DYNAMICS AX X++ CODE

Convert Date to UTCDateTime

static void ConvertDate2DateTime_vm(Args _args)
{
    TransDate       fromDate,toDate;
    TimeZone        tzone;
    UtcDateTime     fDateTime,tDateTime;
    ;
    
    fromDate    = mkDate(01,06,2017);
    toDate        = mkDate(30,08,2017);
    fDateTime   = Global::datetobeginUtcDateTime(fromDate,tzone);
    tDateTime   = Global::datetoendUtcDateTime(toDate,tzone);
    print fDateTime;
    print tDateTime;
 }

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...