:: Forum >>

date formatting question

I'm getting a date from an XML file in the format:

25-OCT-2006_09_35

Can ActiveWidgets transform this into something like:
October 25, 2006, 9:35

???

I know I can write a bunch of javascript to parse it all out and rebuild it. But before I wasted my time doing it, I'm wondering if AW can handle it - and if so, how???

Thanks
Carl
Thursday, November 9, 2006
No, AW will only parse dates as ISO8601, RFC822 or something that is recognizable by the default javascript Date.parse() method.

http://www.activewidgets.com/aw.formats.date/setdataformat.html

You can create your own custom date format class, derived from the AW.Formats.Date, and implement dataToValue() method, which should parse the input string and return javascript date value.
Alex (ActiveWidgets)
Thursday, November 9, 2006

This topic is archived.


Back to support forum

Forum search