A datatype of parsedDateType will have (up to) three subelements, representing the year, month, and day.
This datatype was developed to support the Epicentre date and timestamp data types. Its intended usage is shown in the PEF date element document. However, it is clearly useful as a datatype in its own right. Its usage is shown below in the sample usage schema and sample XML.
<xsd:complexType name="parsedDateType">
<xsd:sequence>
<xsd:element name="year">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9]{4}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:sequence minOccurs="0" maxOccurs="1">
<xsd:element name="month">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="(0?[1-9])|(1[0-2])"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="day" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="(0?[1-9])|([1,2][0-9])|(3[0,1])"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="SpudDate" type="parsedDateType"/>
<xsd:element name="CompletionDate>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="parsedDate" type="parsedDateType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<SpudDate>
<year>1999</year>
<month>04</month>
<day>22</day>
</SpudDate>
<CompletionDate>
<parsedDate>
<year>1999</year>
<month>6</month>
<day>3</day>
</parsedDate>
</CompletionDate>