# \[FMX04\] Format Date in Flash from XML

**URL:** <https://forum.kirupa.com/t/fmx04-format-date-in-flash-from-xml/185968>\
**Category:** flash\
**Created:** [April 18, 2006, 3:57am UTC](https://forum.kirupa.com/t/fmx04-format-date-in-flash-from-xml/185968 "2006-04-18T03:57:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![novetree](https://avatars.discourse-cdn.com/v4/letter/n/7ab992/32.png) [@novetree](https://forum.kirupa.com/u/novetree)\
**Post date:** [April 18, 2006, 3:57am UTC](https://forum.kirupa.com/t/fmx04-format-date-in-flash-from-xml/185968/1 "2006-04-18T03:57:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![theflash](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/theflash/32/1221_2.png) [@theflash](https://forum.kirupa.com/u/theflash)\
**Post date:** [April 18, 2006, 10:08am UTC](https://forum.kirupa.com/t/fmx04-format-date-in-flash-from-xml/185968/2 "2006-04-18T10:08:18Z")

</div>

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