tags:

views:

113

answers:

2

I have to convert one string type field to date datatype in flex what can i do solve this problem

+1  A: 

import mx.controls.DateField;

var dateString: String = " 25/02/2009";

var d:date= DateField.stringToDate(dateString,"DD/MM/YYYY");

with credit to: http://amthekkel.blogspot.com/2009/02/flex-converting-date-string-to-date.html

invertedSpear