Дата и время XML указаны в формате
'-'? yyyy '-' mm '-' dd 'T' hh ':' mm ':' ss ('.' s +)? (Zzzzzz)?
были
• '-'? yyyy - это цифра в четыре или более цифр, которая необязательно имеет цифру с отрицательным знаком, которая представляет год; если более четырех цифр, ведущие нули запрещены, а "0000" запрещено
• остальные '- являются разделителями между частями части даты;
• первый mm представляет собой двузначное число, которое представляет месяц;
• dd - двузначное число, которое представляет день;
• 'T' - разделитель, указывающий, что следует время дня;
• hh - двузначная цифра, представляющая час; "24" разрешено, если представленные минуты и секунды равны нулю, а представленное значение dateTime - это первый момент следующего дня (свойство hour объекта dateTime в пространстве значений · не может иметь значение больше 23);
• ':' является разделителем между частями части времени суток;
• второй mm - двузначное число, которое представляет минуту;
• ss - цифра с целым числом, которая представляет целые секунды;
• '' s + (если присутствует) представляет дробные секунды;
• zzzzzz (если присутствует) представляет часовой пояс (как описано ниже).
здесь приведены примеры
Простой пример 2009-08-31T19: 30: 00
Более сложные примеры
2002-10-10T12: 00: 00-05: 00 (полдень 10 октября 2002 года, центральное летнее время, а также восточное стандартное время в США) 2002- 10-10T17: 00: 00Z, на пять часов позже 2002-10-10T12: 00: 00Z.
см. www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html для получения дополнительной информации