Wednesday, September 30, 2009

Adobe Flex - Days duration between two Date Objects

duration_In_Days = ((today.getTime() - transactionDate.getTime())/(24*60*60*1000)).toFixed(0);

Adobe Flex - Convert String to Date using DateField



var dateString:String = "1980-09-13"
var myDate:Date= DateField.stringToDate( dateString, 'YYYY-MM-DD');