How to make a list of datetime localize?

0
Hi, I would like to make a list of DataTime type attributes with Localize true/false by entity. I cannot find the Localize attribute in the database tables.   Does anyone know how I could make this list? Module/Entity/Attribute/Localize   Thanks in advance, Pascal
asked
2 answers
0

You would need to use the Mendix SDK to query the domain model for this information. For DateTime attributes you can call the localizedate method to see if the value is localized or not.

 

https://apidocs.rnd.mendix.com/modelsdk/latest/classes/domainmodels.datetimeattributetype.html#localizedate

 

I hope this helps.

answered
0

Hi Paul

 

You cannot really visualise the data by following the path, as the localize attribute is not stored that way. You can, however, find it here:

 image.png

 

The concept that you are trying to achieve is not impossible, however, as you can use the formatdatetime and formatdatetimeUTC functions to display both the UTC and local values! 

You can find some additional information here: https://docs.mendix.com/refguide/parse-and-format-date-function-calls/

 

Good luck! 

answered