G
Glyn Meek
One line of our code is as follows...
xml_node.Attributes(2).Value =
Now.ToString("yyyy-MM-ddTHH:mm:ss.fffffffzzz")
When we have the Pocket PC Regional Settings set to U.S. or England or
pretty much anywhere except Italy, this would result in something like...
"2004-10-24T12:25:00.9687500-05:00"
being generated by the Now.ToString, which is perfect (i.e. colons between
the hours, minutes andseconds of the 'time' part of the field)...BUT, if we
have the Pocket PC with a regional setting for Italy, this does NOT work
correctly. The Italian setting would normally set the 'time' to 12.25.00
instead of 12:25:00, but we assumed that the ToString literal would force
the colons : to be insrted...IT DOESN'T and instead, we get...
"2004-10-24T12.25.00.9687500-05:00"
Where we now have periods between the hours, minutes andseconds of the
'time' part of the field
Can anyone tell us what's going on here and how we can force the : to
appear. The problem maifests itself when we bring the xml file that this is
a part of back to the PC where the PC rejects the date/time format, EVEN IF
THE PC IS RUNNING WITH AN ITALY SETTING!!!
Regards
Glyn Meek
SoftwareOnSailboats
xml_node.Attributes(2).Value =
Now.ToString("yyyy-MM-ddTHH:mm:ss.fffffffzzz")
When we have the Pocket PC Regional Settings set to U.S. or England or
pretty much anywhere except Italy, this would result in something like...
"2004-10-24T12:25:00.9687500-05:00"
being generated by the Now.ToString, which is perfect (i.e. colons between
the hours, minutes andseconds of the 'time' part of the field)...BUT, if we
have the Pocket PC with a regional setting for Italy, this does NOT work
correctly. The Italian setting would normally set the 'time' to 12.25.00
instead of 12:25:00, but we assumed that the ToString literal would force
the colons : to be insrted...IT DOESN'T and instead, we get...
"2004-10-24T12.25.00.9687500-05:00"
Where we now have periods between the hours, minutes andseconds of the
'time' part of the field
Can anyone tell us what's going on here and how we can force the : to
appear. The problem maifests itself when we bring the xml file that this is
a part of back to the PC where the PC rejects the date/time format, EVEN IF
THE PC IS RUNNING WITH AN ITALY SETTING!!!
Regards
Glyn Meek
SoftwareOnSailboats