[FMX04] Format Date in Flash from XML

I’m currently pulling data into Flash 7, Actionscript 2.0 from an RSS XML file. One of the nodes in the XML is the dateTime for each entry. After pulling in the dateTime how can I format how it displays?

Example:

dateTime format in XML-
Mon, 10 Apr 2006 16:35:00 -0700

I want it to display like this in Flash in a text field-
4/10/2006, Monday, 10:35am

or

10:35am, Monday, April 10, 2006

etc.

I think there is no built in utility to format date directly… you will have to write code yourself according to the need :slight_smile: