I have a web service which returns XML which looks like:
<ArrayOfPosition>
<Position>
<Amount>9</Amount>
<Symbol>Bob</Symbol>
<UpdateTime>2011-04-21T11:34:34.234234234-04:00</UpdateTime>
<UpdateTimeStr>2011-04-21 11:22:33</UpdateTimeStr>
</Position>
<Position>
<Amount>10</Amount>
<Symbol>Fred</Symbol>
<UpdateTime>2011-04-21T11:34:34.234234234-04:00</UpdateTime>
<UpdateTimeStr>2011-04-21 11:22:44</UpdateTimeStr>
</Position>
</ArrayOfPosition>
It comes into Excel without problems but no matter what I do I can't change the formatting on the UpdateTime or UpdateTimeStr columns in the spreadsheet. Excel seems to refuse to recognize this data as a datetime field.
I had a feeling that it would not be able to figure out that the field was a date and time, so I added a field called UpdateTimeStr which has the time formatted in a way I expected Excel to understand, but alas, no go. Any ideas?