Hi Experts,
I need to display start date time and end date time from a table in my report which is of type UTCDateTime now. how can I convert it to user timezone datetime.
StartDate = MyTable.StartDate
EndDate = MyTable.EndDate
Is there any code to convert it directly.
Thanks in advance.
The title says that you want to do it in X , but then you talk about a report. Can you clarify your needs, please?
If you need it in X , use DateTimeUtil::applyTimeZoneOffset():
DateTimeUtil::applyTimeZoneOffset(myTable.StartDate, DateTimeUtil::getUserPreferredTimeZone()));
Hi AXBeginner,
Have you tried this: docs.microsoft.com/.../how-to-convert-between-utcdatetime-and-system-datetime
https://stoneridgesoftware.com/working-with-utcdatetime-functionality-in-dynamics-ax-2012/
This works perfect. Thanks
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,004
André Arnaud de Cal... 857 Super User 2025 Season 2
Sohaib Cheema 548 User Group Leader