Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 17314

Q&A session: Working with UtcDateTime from X++

$
0
0
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)

Viewing all articles
Browse latest Browse all 17314

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>