SkyNarc
09-12-2005, 02:58 PM
Hi,
How does one apply Custom Formatting in the following situation: I have an XML document with a summaryDate value that represents a date as follows: 31 November 2004. I'm using an XmlConnector to load this document then binding it to a dataset. I need this string respresented date to be converted to a Date object so that I can use sorting on the dataset object.
I have created a custom class called DateFormat that extends the mx.data.binding.CustomFormatter class.
I have an XmlConnector to load the xml data.
I have a DataSet object getting the data from the XmlConnector and just for test purposes I have a datagrid to see the results.
I set the schema data type for this field to String and then selected the Custom Formatter from the formatter property and entered my DateFormat class as the custom formatter. In my dataset I created a property called summaryDate and set it's type to Date.
Any thoughts?
Thanx.
How does one apply Custom Formatting in the following situation: I have an XML document with a summaryDate value that represents a date as follows: 31 November 2004. I'm using an XmlConnector to load this document then binding it to a dataset. I need this string respresented date to be converted to a Date object so that I can use sorting on the dataset object.
I have created a custom class called DateFormat that extends the mx.data.binding.CustomFormatter class.
I have an XmlConnector to load the xml data.
I have a DataSet object getting the data from the XmlConnector and just for test purposes I have a datagrid to see the results.
I set the schema data type for this field to String and then selected the Custom Formatter from the formatter property and entered my DateFormat class as the custom formatter. In my dataset I created a property called summaryDate and set it's type to Date.
Any thoughts?
Thanx.