http://schemas.microsoft.com/sqlserver/2004/sqltypes
simpleType datetime

Super Types
{http://www.w3.org/2001/XMLSchema}dateTime
|
+--{http://schemas.microsoft.com/sqlserver/2004/sqltypes}datetime (restriction)

Properties
This component is not nillable.

Model

((000[1-9])|(00[1-9][0-9])|(0[1-9][0-9]{2})|([1-9][0-9]{3}))-((0[1-9])|(1[012]))-((0[1-9])|([12][0-9])|(3[01]))T(([01][0-9])|(2[0-3]))(:[0-5][0-9]){2}(\.[0-9]{2}[037])?
inclusive lower bound: 1753-01-01T00:00:00.000
inclusive upper bound: 9999-12-31T23:59:59.997


Source
<xsd:simpleType name="datetime">
<xsd:restriction base="xsd:dateTime">
<xsd:pattern value="((000[1-9])|(00[1-9][0-9])|(0[1-9][0-9]{2})|([1-9][0-9]{3}))-((0[1-9])|(1[012]))-((0[1-9])|([12][0-9])|(3[01]))T(([01][0-9])|(2[0-3]))(:[0-5][0-9]){2}(\.[0-9]{2}[037])?"/>
<xsd:maxInclusive value="9999-12-31T23:59:59.997"/>
<xsd:minInclusive value="1753-01-01T00:00:00.000"/>
</xsd:restriction>
</xsd:simpleType>


http://www.stylusstudio.com