Expand my Community achievements bar.

How to parse String to DateTime

Avatar

Level 10

I have a string variable with the datetime value in the follo

wing format:

30-May-2010 11:30 AM

There is a need to convert this string value into DateTime for some processing.

I have used the following expression, which is failed to coerce:

parse-dateTime-withFormat(/process_data/@KPIStartDateStr, "dd-MMM-yyyy hh:mm a")

Any advise would be appreciated.

Nith

1 Reply

Avatar

Level 10

I searched the documentation. There is no way to convert a String datatype into DateTime datatype. Am I Correct?

Nith