I'm beginning a new project which involves heavy xml and schema use accross multiple platforms (windows, windows mobile, Iphone, Ipad, and more which are yet to be discovered!). This xml platform has to be able to exchange date times from all over the world as our product is currently being implemented in Australia as well as in Canada and USA.
Date times are generally the one "type" that causes the most issues between different platforms and languages.
Should I trust the built in date type? or should I break down each date into it's subsections, e.g. elements or attributes for hours, mins, seconds, day, month, year, timezone etc.
I'd like to understand the pro's and con's of each options above.
EDIT: Added 2 follow up questions to get more clarity
if using the plain xml date "type" how do I ensure that all clients are correctly writing the date in this format?
I know that .net I can use DateTime.ToUniversalTime() do other languages have the equivalent, or is it the XML writing dll's that control the conversion to international time?
Thanks Pete