This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
=============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ =============================================================================== ---------- Forwarded message ---------- Date: Thu, 08 Jul 2004 11:58:08 -0700 From: John Caron <address@hidden> To: address@hidden Subject: xsd:dateTime dates have to have the "T" in it, for the W3C profile of ISO 8601 the first 3 date elements validate, the last does not <?xml version="1.0" encoding="UTF-8"?> <test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\temp\xml\testDate.xsd"> <date value="1997-07-16T19:20:30Z"/> <date value="1997-07-16T19:20:30+01:00"/> <date value="1997-07-16T19:20:30"/> <date value="1997-07-16 19:20:30+01:00"/> </test> under this schema: <?xml version="1.0" encoding="UTF-8"?> <!--W3C Schema generated by XMLSPY v5 rel. 2 U (http://www.xmlspy.com)--> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="date"> <xs:complexType> <xs:attribute name="value" type="xs:dateTime" use="required"/> </xs:complexType> </xs:element> <xs:element name="test"> <xs:complexType> <xs:sequence> <xs:element ref="date" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> so we will standardize on that. You should reference this document in any documentation: http://www.w3.org/TR/NOTE-datetime this section of catalog spec will be updated: http://www.unidata.ucar.edu/projects/THREDDS/tech/catalog/InvCatalogSpec.html#dateType