ok I have amfphp returning a query that is a Date data type in side of mysql.
It is in this format “2007-27-5” which is a string. When making a date object in flash you need some thing like this
var testDate:Date = new Date(2007, 4, 27);
I would like to know if there is a short cut around this problem.
As it would look now I need to take that string and have a regular expression pull the sub-strings (“2007”, “5”, “27”) out and some how convert the sub-strings in to a numbers (2007, 5, 27), then set vars with the number latter sending it to that date constructor.
any ideas?