PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Date / Time fields storing at datetime instead of text?

  1. Hi all, I was wondering why date & time fields are being stored as text instead of the datetime format. I'm trying to do some sorts & the fields not being converted to a timestamp makes it more difficult. Just curious if this was going to change, if there's a reasonable fix I can apply, etc.

    Cheers!

    Posted 13 years ago on Tuesday July 5, 2011 | Permalink
  2. The data is stored as a serialized array. They aren't stored in individual database columns which require a unique table be created for each form. Because the forms are dynamic, all the data is stored as a serialized array using the same database table structure.

    Posted 13 years ago on Tuesday July 5, 2011 | Permalink
  3. ramseyp, the php function strtotime works like magic to convert nearly any time or date string into a Unix timestamp so you can use it in your sorts. Can you incorporate that into your code?

    http://php.net/manual/en/function.strtotime.php

    Posted 13 years ago on Wednesday July 6, 2011 | Permalink