Page 1 of 1

Datetime format exception

Posted: Thu Apr 23, 2009 8:18 pm
by twu027
Hi,

I have a xml file which contains an element like this


The data type for these dates are "date"





when I try to generate the report, it keeps giving me the exception

The string "20031002152931" is not valid AllXsd value.

I guess the problem is with the datetime. If I set the type to string, it is fine.
But I really want to display the date in different format, so I have to specify the type as date.

How to get around this problem?

Thanks
Tony

Datetime format exception

Posted: Thu Apr 23, 2009 8:48 pm
by twu027
Never mind

I found the string must be in the format of

YYYY-MM-DDTHours:Minutes:Seconds

2003-10-02T15:29:31

that is required by the .NET framework which is bit different from X3C xml schema's requirement


Thanks