Datetime format exception

Stimulsoft Reports.NET discussion
Post Reply
twu027
Posts: 11
Joined: Tue Apr 21, 2009 8:55 pm
Location: new zealand

Datetime format exception

Post 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
twu027
Posts: 11
Joined: Tue Apr 21, 2009 8:55 pm
Location: new zealand

Datetime format exception

Post 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
Post Reply