# Format date using DateField Component

**URL:** <https://forum.kirupa.com/t/format-date-using-datefield-component/222948>\
**Category:** flash\
**Created:** [April 18, 2007, 9:46am UTC](https://forum.kirupa.com/t/format-date-using-datefield-component/222948 "2007-04-18T09:46:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![offshore](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@offshore](https://forum.kirupa.com/u/offshore)\
**Post date:** [April 18, 2007, 9:46am UTC](https://forum.kirupa.com/t/format-date-using-datefield-component/222948/1 "2007-04-18T09:46:13Z")

</div>

Hey,

I’m trying to format the date using the date field component.

At the moment I am using

```auto

trace(StartDate2.selectedDate);

```

Which returns something like.

```auto
Wed Apr 18 00:00:00 GMT+0200 2007

```

Thats fine. But basically I only need. “Wed April 18”

I tried using the date object.

Something like

```auto

var date_str:String = ((StartDate.getMonth()+1)+"/"+StartDate.getDate()+"/"+StartDate.getFullYear());

```

StartDate is the instance name…  
I’m not having much luck…

Any help much appreciated…  
thx.
