Guys , I also need some help on this thing I m not getting exactly how to get this thing solved if is there any way to transform flex date objects to php through amfphp ,same as reverse it will be great
right now I m storing date in php as dateandtime object and fetching as string into flex but it get transform into this date strored in mysql 2001-12-13 in flex as string it comees like this : 12/13/01 Any sugestion how to have this as in corect way or if I could convert "12/13/01" this string to dateobject Sajid ----- Original Message ---- From: Nik Derewianka <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Wednesday, September 3, 2008 4:31:25 PM Subject: Re: [flexcoders] AMFPHP and date/datetime data from MySQL On 04/09/2008, at 12:01 AM, Jason Reynolds wrote: Adobe has some date parsing methods in the as3corelib library -- http://code. google.com/ p/as3corelib/ I suppose it depends on the format your storing the date, the way I've been handling it is using as3 to parse the date string that AMF returns. Not sure if this is the best way, I'd be open to a better one! Yeah, I am at the point where i will try populating the string of the date (php side) in a throw away prop and then on successful load coerce it into a true date object in the real prop that is then used for binding. But was hoping that if i got it in the right format serverside then the amf deserialization would just take care of it without having to write the converter code. The MySQL columns are date and datetime so there shouldn't be anything funky going on with the storage. Hope that helps, I can attempt to help more if it doesn't. I've been using AMFPHP for awhile now... would be nice to make any contacts that use it! Heh - i'll just say that it has been an... adventurous. .. experience getting upto speed on amfphp (or remoting of any kind for that matter). But now that it is mostly working, it is pretty sweet. I just hope to get the time to write up a comprehensive overview of all the pitfalls and assorted tidbits i found all over the net. Cheers, Nik