Our vBulletin migration is complete.
Welcome vBulletin users! All content and user information from the Micro Focus Forums (vBulletin) site has been migrated to this site. READ MORE.
Highlighted
dfilipovic2 Outstanding Contributor.
Outstanding Contributor.
343 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

Tags (4)
0 Likes
1 Solution

Accepted Solutions
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: Problem with parsing ISO 8601 date

Jump to solution

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!
1 Reply
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: Problem with parsing ISO 8601 date

Jump to solution

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!
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.