• Resolved JRiver

    (@jriver)


    Hi.
    In the data table dates from the form of this format: 2008-10-29. How can I change this format to 29-10-2008?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Doeke Norg

    (@doekenorg)

    HI @jriver,

    The format in the export is how Gravity Forms stores the data in the database, and how they return it. So unfortunately, the current version of the plugin has no solution for this. However, if you can hold on to your seat for a few days; I’m about to release version 1.2.0 which has some new hooks, including a gfexcel_output_rows hook, that can update every field, in every row to your liking.

    If you can’t wait until then, you can download the Development branch on Github. And try out the new (beta) 1.2.0.

    • This reply was modified 7 years ago by Doeke Norg.
    Plugin Author Doeke Norg

    (@doekenorg)

    Hi @jriver,

    Just released 1.2.0!

    You can add something like this in your functions.php

    
    add_filter("gfexcel_output_rows", function ($rows) {
        foreach ($rows as &$row) {
            $row[1] = date_create_from_format("Y-m-d H:i:s", $row[1])->format("d-m-Y H:i:s");
        }
        return $rows;
    });
    

    Hope this helps!

    Thread Starter JRiver

    (@jriver)

    OMG

    Thanks! You are so cool! )

    Plugin Author Doeke Norg

    (@doekenorg)

    You’re welcome. Would you like to leave a review of the plugin?
    I would really appreciate it!

    Thanks in any case!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Date format’ is closed to new replies.