Date and time data types are used to contain values for date and time. The date data type is used to define dates. The date is defined using this format: “YYYY-MM-DD”, where: YYYY represents the year MM represents month DD represents the number of days 注意: All the ingredients are necessary. Here is an example of a date declaration in schema: The elements in the document should look like this: To specify a time zone, you can also enter a date using UTC time by adding a “Z” after the date-like this: Or you can specify the offset based on the world adjustment time by adding a positive or negative time after the date-such as this: H2 > time data type (Time Data Type)Date data type (Date Data Type) ¶
<xs:element name="start" type="xs:date"/>
<start>2002-09-24</start>
Time zone ¶
<start>2002-09-24Z</start>
<start>2002-09-24-06:00</start>
或者
<start>2002-09-24+06:00</start>