1 Reply Latest reply on Jul 30, 2007 9:08 AM by dimival

    Date Field Format

    xrum Level 2
      hi :)
      i'm having a problem with the date picker.

      mine looks like this:
      <mx:DateField id="dtEnd" formatString="MM/DD/YYYY"/>

      the probme is, is that when i try to pass it though a function, it comes back in this format:
      Mon Jul 9 00:00:00 GMT-0400 2007
      (using this: trace(dtStart.selectedDate);)
      how do i make it come back as: 07/09/2007?


        • 1. Re: Date Field Format
          dimival Level 1
          The formatString is entirely for displaying purposes, so when you ask for the selectedDate you get that, a Date object. If you want to obtain the formatted String for the date you can do this: