Convert String format to DateTime

0
Hi guys, Does anyone know how to convert from string format to time format? Currently when i user parseDateTime, it does not show the correct time. It will show one hour late from the string input. You can refer to below image :
asked
1 answers
2

The time difference isn't due to the used function, but due to the timezone settings. Which apparently gives an one hour offset in the resulting DateTime.

This could be solved by

  • Not localizing your DateTime attribute

Or

  • Using the UTC functions. Though this might give an offset as well depending on timezone settings and attribute localization

 

See for more guiding https://academy.mendix.com/link/modules/374/lectures/3046/7.1-Introduction

answered