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