Convert Integer to Datetime variable

0
How can I convert a Integer attribute ($TimeDimension/Year) to a Datetime variable with day and month being 1st of January, in a microflow?
asked
3 answers
0

Use this parseDateTime('1/1/' + toString($TimeDimension/Year), 'MM/dd/yyyy')

answered
0

You can use the parseDateTime function

You have to first make the $DateString from your other values.

parseDateTime($DateString, '<the format in which you have your DateString>')

For time zone adjustment you can use any of these functions: parseDateTime OR parseDateTimeUTC
Please refer to documentation for details: https://docs.mendix.com/refguide/parse-and-format-date-function-calls

answered
0

Here, you can do it like this.

 

answered