Convert a datetime Text to DateTime object

Certified Lead Developer

Hi, 

Is there an OOTB function to convert a datetime text to DateTime object?

The datetime string is of the format - YYYY-MM-DDThh:mm:ss.SSSZ (Example: 2018-07-20T09:09:26.000Z)

 

TIA

Regards,

Sunil Zacharia

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    A Score Level 2
    in reply to Sunil Zacharia
    Hi Sunil,
    I just want to know what is your requirement. Are you using any service to get data from DB. I see that the Date Time text format is in converted Json format. if you are getting this type of format from service. In my perspective better to get the proper date time format from service so that we can reduce the calling the custom rule for Converting the date time text to Date time object for each of the date & time parameter