Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter dates using date binding with datatypes
Message
From
26/11/2001 16:47:28
 
 
To
26/11/2001 16:03:26
General information
Forum:
Internet
Category:
Microsoft Internet Explorer
Miscellaneous
Thread ID:
00585804
Message ID:
00586045
Views:
49
>>>I need to enter dates using IE 6 data binding from XML data island.
>>>
>>>My windows date format is dd.mm.yyyy
>>>
>>>If I try to enter ANY date value in ANY format, IE 6 always displays error
>>>
>>>A value could not be saved into the data sources 'docdate' field.
>>>Operation failed with status 7.
>>>Discard changed value ?
>>>
>>>Is it possible to enter dates using date datatype in IE 6 ?
>>>
>>>
>>>test code (remove extra spaces)
>>>
>>>
>>>< xml id="DocHead" javaDSOCompatible="true">
>>>< DocHead xmlns:dt='urn:schemas-microsoft-com:datatypes'>
>>>< row> < docdate dt:dt="date">2000-01-02< /docdate> < /row>
>>>< /DocHead>
>>>< /xml>
>>>
>>>< table DATASRC=#DocHead>
>>>< tr>< td> < input datafld=docdate dataformatas=localized-text>< /td>< /tr>
>>>< /table>
>>>
>>
>>If you use this date format you have to enter the date in the same format. With the same sample and a date of 2001-11-26 you don't get an error, but the date format is changed to the windows setting after exiting the field.
>
>Thank you for yyyy-mm-yy tip.
>
>How I can enter dates in the same format as in my windows setting, dd.mm.yyyy ?
>
>Also: if I enter 2001-11-26 in first time, and press tab, date is shown
>as 1/26/01 (my windows setting is dd.mm.yyyy !)
>If I enter 2001-11-26 second time, and press tab, date is not converted at all !? It shows 2001-11-26 as entered. Why ?

Yeah, that's strange. I haven't tried relying on the xml data source for date formatting, usually I instruct the user about the proper date format and validate it using a script or a COM server.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform