You shoul use a parseDateTime function or a formatDateTime function based on what type you have. If you have a string you need a parseDateTime($variable, ‘yyyy-MM-dd-hh-mm-ss’) and the output will be a DateTime.
Same on formatDateTime.
Hi,
In Message definition, under example value, you can give the sample value as shown below.
The below are the format allowed in Mendix.
If the your required format is not available, then need to create a string attribute and map the respective value(your format)