There were a couple questions asked in the post I wrote a while back about the use of UtcDateTime in AX. Question 1: Hi. how can put date in a field utcdatetime? Answer: The method newDateTime from class DateTimeUtil can be used to accomplish this, as it takes the date and time parts in separately as arguments, followed by the TimeZone enumeration in case a timezone offset needs to be factored in. Otherwise the UTC timezone will be used. static void CreateUtcDateTimeFromDate(Args _args) { date locDate...(read more)
↧