2 Replies Latest reply on Jun 12, 2009 10:01 AM by leybniz

    Problem with Flex DateField.

    Raghu1286

      Hi,

       


      I am trying to convert a date string to Date object using DateField class. My date string is "14-Jun-2009", and the statement is,

       

      dt:Date  =  DateField.stringToDate("06-Jun-2009", "DD-MMM-YYYY");

       

      This returns a null date object.

       

      Whereas if i am using the date string "14-06-2009" and format string as "DD-MM-YYYY" it works fine.

       

      Any help will be appriciated.

       

      Cheers,

      Raghu.