Hi guys,
i have a system field created Date and time, and modified date and time.
same field i used in form level now i want to show the date UAE how to convert <UTC/GST >
give us a Example how to do in x++?
Thanks.
Hi Riyas,
Look at DateTimeUtil::applyTimeZoneOffset method.
Thanks for your replay Vinit Goyal,
i am getting error below.
The field 'CreatedDateTime' is read only. A value cannot be assigned to it.
What you are trying to do with created date time ? Are you trying to update it ?
Can you give us more details about your requirement, please?
The value is stored in UTC and it's - by default - shown in user's preferred timezone. If you want user's preferred timezone, you're already done. If you want UTC, set TimezonePreference property to NoConversion.
If you want value in some other timezone, you'll need a conversion in code (DateTimeUtil::applyTimeZoneOffset(
Thanks for your replay Sukrut Parab ,
No , updating i am doing created date and time UTC to GMT convert Like :UAE time how to do in x++ ?
Please tell us what is the requirement and share the code which you have already written.
how to resolve the issue. came again.
That's a completely different question. Please create a new thread about assigning values to CreatedDateTime and don't forget to tell us there what business requirement you're trying to solve by this implementation.
You can't modify the contents of this field. And you shouldn't. The field already contains the correct information.
If you show this field on a form, every user sees it adjusted to their own timezone setting. The system converts it automatically.
Is this your requirement? If not, please try to explain your requirement more clearly. Thanks!
Hi Riyas ahamed F,
You cannot update a system field once the record is been inserted, please try to put the code into the insert() method of table instead of modifiedfield() method.
See:gfeaxblog.wordpress.com/.../
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 1,850
André Arnaud de Cal... 795 Super User 2025 Season 2
Sohaib Cheema 519 User Group Leader