5 Replies Latest reply on Jan 16, 2009 5:48 PM by Geetha Narayan

    mx:datefield preselected with the string date from the database

    Geetha Narayan

      I get a date from the database, in the string format which is in dd-mmm-yyyy.

      I want this date to be preselected in the datefield (in the calendar), for this i need to convert this string to a date object and then hook it up with the mx:datefield.

      I found that there is a stringToDate() function but that is not applicable in my case or may be i did not use it properly. I also found parseDateString which was also not that useful.

      What is the best approach for this? can someone help me out with this?

      Thanks in advance,