Tuesday, 13 December 2016

How to get today's +1 date in Dynamics AX X++?


info(date2StrXpp(today()+1)); // date of tomorrow

info(DateTimeUtil::toStr(DateTimeUtil::addDays(DateTimeUtil::utcNow(),-1))); // date of yesterday

info(date2StrXpp(systemDateGet()+1));

ValidFrom  <= DateTimeUtil::newDateTime(today(), 0, DateTimeUtil::getCompanyTimeZone())

HCMPositionWorkerAssignment.ValidFrom  = DateTimeUtil::newDateTime(1\1\2017, 0);HCMPositionWorkerAssignment.ValidTo    = DateTimeUtil::maxValue();

ValidFrom = hcmWorker::getMinEmploymentStartDate(hcmWorker.RecId);

ValidTo = hcmWorker::getMaxEmploymentEndDate(hcmWorker.RecId);



No comments:

Post a Comment