0 Replies Latest reply on Nov 8, 2007 1:34 PM by rhanna2

    Formatting Date Field

      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?


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