0 Replies Latest reply on Aug 18, 2006 1:34 PM by davidmedifit

    DateField format

    davidmedifit Level 1
      I have a datefield in a form that is being populated by a result set from a ColdFusion query (i.e., an ArrayCollection). My issue is getting the initial value to format to "MM/DD/YYYY". Because it's a SQL Server date type, the value comes out like: "Mon Sep 5 00:00:00 GMT-0400 2006".

      The MXML tag is as follows:

      <mx:FormItem label="Shift Date:" required="true">
      <mx:DateField labelFunction="dateChanged" formatString="MM/DD/YY"
      text="{itemDetails.getItemAt(0).startDate}"/>
      </mx:FormItem>

      There is no problem when I select a different date (the date formate properly). Is there a property call I am missing?

      Cheers,

      David