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!

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!

  ----- Original Message ----- 
  From: Nik Derewianka 
  To: [email protected] 
  Sent: Wednesday, September 03, 2008 6:00 AM
  Subject: [flexcoders] AMFPHP and date/datetime data from MySQL


  Hi All,

  Could anyone enlighten me as to how i should send and retrieve date 
  and datetime data for inserting into MySQL via amfphp (1.9) with value 
  objects ?

  If i edit the data directly in MySQL and then retrieve a vo with a 
  Date datatype i get the following message:

  TypeError: Error #1034: Type Coercion failed: cannot convert 
  "1970-01-01" to Date.

  So, I need to format the date in someway so that flex can deserialize 
  it properly. Any insight would be greatly appreciated (am coming 
  from .net land so new to both PHP and as3).

  Cheers,
  Nik


   

  __________ Information from ESET NOD32 Antivirus, version of virus signature 
database 3411 (20080903) __________

  The message was checked by ESET NOD32 Antivirus.

  http://www.eset.com

Reply via email to