[support] How to store/retreive date fields into/from MySql

Austin Einter austin.einter at gmail.com
Mon Mar 28 03:06:24 UTC 2011


Hi All
I have a date field in my form.
How do I store/retreive the value into/from MySQL.

On google search, I saw people are suggesting to use either "int" or
"datetime" type.
Please suggest which one needs to be used.

If I use int (I hope core uses int), while storing can I just
store "form['values']['date1']" as %d and while retreivin, what are the
related apis to convert back to date.

Regards
Austin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110328/05c09f54/attachment.html 


More information about the support mailing list