# Formatting Date Field

**URL:** <https://forum.kirupa.com/t/formatting-date-field/243487>\
**Category:** flash\
**Created:** [November 7, 2007, 3:51pm UTC](https://forum.kirupa.com/t/formatting-date-field/243487 "2007-11-07T15:51:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhanna2](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@rhanna2](https://forum.kirupa.com/u/rhanna2)\
**Post date:** [November 7, 2007, 3:51pm UTC](https://forum.kirupa.com/t/formatting-date-field/243487/1 "2007-11-07T15:51:37Z")

</div>

Hi,  
I’m using the following script to display the current day, but it does not display in the format that I need. The date displays as: 11/07/2007. I need it to display as 110707.

Any suggestions on the code to have the results display in MMDDYY format?

Thanks!!

var today\_date : Date = new Date();  
var date\_str:String = ((today\_date.getMonth()+1)+"/"+today\_date.getDate()+"/"+today\_date.getFullYear());
