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.

When support for international date/time formats?

  1. When do you plan to include support for ISO date format (yyyy-mm-dd) and 24h time in the date & time fields, respectively?

    (i'm currently "mutilating" the plugin to cope with them both, for the site of a particular client… not a pretty sight!)

    Posted 13 years ago on Saturday January 22, 2011 | Permalink
  2. It won't be until after the 1.5 release. So hopefully we can work it into the 1.6 or 1.7 release. It's on our list. One of the major goals for 2011 will be refining and enhancing existing features as the bulk of the major features are now good to go with the 1.5 release.

    Posted 13 years ago on Saturday January 22, 2011 | Permalink
  3. jhayes4
    Member

    I second this request to get ISO date format in the Post Custom Field as well as the option for 24 hour time as it's essential to help with sorting posts.

    And hopefully this will allow the flexibility to have the end user select one format (DD-MM-YYYY for example) but that i can choose a different output (YYYY-MM-DD) - and a similar feature for time.

    Thanks!

    Posted 13 years ago on Saturday January 22, 2011 | Permalink
  4. Edwin
    Member

    hI,

    I also need the ISO date format in the Post Custom Field and a 24 hour time would be great.

    I Use GF in combination with Events Calendar Pro to let visitors send in events. Works fine only I cannot use the date picker in GF because ECP does not recognize the date format from GF

    Posted 13 years ago on Wednesday February 2, 2011 | Permalink
  5. studioleland
    Member

    Bump for the YYYY-MM-DD datepicker format. I need to be able to pass as a querystring to sort a CPT on several pages. I can pass the variable just fine but then I have work some crazy php date games to make it the standard format for comparison.

    Any way to filter this field during the submit? I guess I can just do the date conversion on the target page. Ultimately I need to be able to do something like this with the redirect:

    myurl.com/pagename/?mydate=YYYY-MM-DD

    Thanks for any help guys.

    Posted 13 years ago on Thursday February 10, 2011 | Permalink
  6. Hi Studioleland,

    Currently there is no one to format the date as it is populated in the redirect query string. On the page you are redirecting to, however, it is easy to format the date you'd like by using a combination of PHP's date() and strtotime() function. Here is an example:

    <php
    
    $mydate = $_GET['mydate'];
    $date = date('Y-m-d', strtotime($mydate ));
    
    ?>
    Posted 13 years ago on Thursday February 10, 2011 | Permalink
  7. studioleland
    Member

    Okay - thanks for the update. I can do the reformat from the POST variable. Just figured I would ask to see if I could skip that step.

    Posted 13 years ago on Thursday February 10, 2011 | Permalink
  8. Gravity Forms v1.6 Beta 1 had already introduced a 24 hour time format to the Time Field and we have added additional international date format options to the Date Field in Gravity Forms v1.6 Beta 3 which is now available. Here is a list of the date formats now supported by the Date Field:

    • mm/dd/yyyy
    • dd/mm/yyyy
    • dd-mm-yyyy
    • dd.mm.yyyy
    • yyyy/mm/dd
    • yyyy-mm-dd
    • yyyy.mm.dd
    Posted 13 years ago on Thursday September 15, 2011 | Permalink