Formatting valid xs:dateTime fields with PHP
Recently I had to compose some XML documents that needed to be validated with XSDs. All fine of course, but I had some problem with two date/time fields that according to the XSD were supposed to be xs:dateTime fields. Googling around I found a lot of references to the ISO8601 format, so I decided to format my date using the DATE_ISO8601 constant. That did not work though.
posted on September 8, 2009 - 4 comment(s) - tags: php, xsd, validation, xml, datetime