For 99% of use cases on the web, you'll probably manage to get away with the W3 subset:
http://www.w3.org/TR/NOTE-datetime
which avoids most of the awkward corners, and for which a parser is a bit easier to write.
http://www.w3.org/TR/NOTE-datetime
which avoids most of the awkward corners, and for which a parser is a bit easier to write.