Highlighted
Outstanding Contributor.
Outstanding Contributor.
551 views

Problem with parsing ISO 8601 date

Jump to solution

Hello experts,


Does anyone know how can I parse date type:
2019-03-01T01:00:00Z or 2019-03-01T01:00:00 into SM kind of date mm/dd/yy hh:mm:ss?

Best regards,
Dino

Labels (4)
Tags (4)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Knowledge Partner
Knowledge Partner

Use XMLDate object.

new XMLDate('2019-03-01T01:00:00Z')
new XMLDate('2019-03-01T01:00:00')

Just take care about the Time Zone, this way system will consider 0.

 

Regards,
Breno Abreu

If you feel this was helpful please click the KUDOS! thumb below!

View solution in original post

1 Reply
Highlighted
Knowledge Partner
Knowledge Partner

Use XMLDate object.

new XMLDate('2019-03-01T01:00:00Z')
new XMLDate('2019-03-01T01:00:00')

Just take care about the Time Zone, this way system will consider 0.

 

Regards,
Breno Abreu

If you feel this was helpful please click the KUDOS! thumb below!

View solution in original post

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.