Convert localised time to UTC time

Hi Reader,   I have taken a Date Time attribute which localized with yes in the domain model. I have to display that same attribute on different pages, on one page it will be local time but on second page it will UTC time. How can I do this? How can I covert local time to UTC time in mendix?   Thanks and Regards, Harshraj Singh
1 answers

It’s important to know that DateTime attributes are always stored in UTC format in your database. The localise checkbox determines if the attribute will be diplayed in the user’s timezone on a page. If you wish to show the localised time on one page and UTC time on another page I suggest creating a second attribute with the same value but without the localise checkbox checked and display the second attribute on the second page instead of the localised one.