1 Reply Latest reply on Dec 11, 2008 8:02 PM by Gregory Lafrance

    datechooser display current date in YYYY/MM/DD format on   init

    Level 7
      I have two date fields. I'd like one date chooser to display the current date
      on creation complete and the other should display the 30 days after the current

      The format needs to be YYYY/MM/DD.

      I'm currently getting a the current date in a var called currentDate but it
      returns at 11 Dec 2008.

      Thanks in advance.


      public function setDate():void
      var currentDate:Date = new Date();
      var endDate:Date= ;
      effective_date.text =,""
      expires_date.text = ;