How can I convert string datatype to date datatype in flex?

Import mx.controls. DateField; var dateString: String = " 25/02/2009"; var d:date= DateField. StringToDate(dateString,"DD/MM/YYYY") with credit to: amthekkel.blogspot.com/2009/02/flex-conv....

Import mx.controls. DateField; var dateString: String = " 25/02/2009"; var d:date= DateField. StringToDate(dateString,"DD/MM/YYYY"); with credit to: amthekkel.blogspot.com/2009/02/flex-conv....

Var str:String = "25/02/2009" var d:Date = new Date(str); or we can use a custom DateUtils class package { import mx.formatters. DateFormatter; public class DateUtils extends DateFormatter { public function DateUtils() { super(); } public static function parseString (str:String):Date { return parseDateString(str); } } }.

You can also use the Date. Parse function with the Date. SetTime function to create a new Date object from a string.

Var myDateString:String = "05/10/2011"; var myDate:Date = new Date(); myDate. SetTime(Date. Parse(myDateString)).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions