Home Forums Gravity Forms PDF Extended General add actual time

This topic contains 5 replies, has 2 voices, and was last updated by  David Liao 9 months, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1601

    David Liao
    Participant

    is there a way to also to display actual time of submission? Similar to echo $date_created_usa;

    • This topic was modified 10 months, 1 week ago by  David Liao.
    #1603

    Jake Jackson
    Keymaster

    Hi David,

    I’ll look at adding it to the next release. In the mean time, you can use $lead['date_created'] to get the date/time and parse it using PHP to get the desired format.

    #1604

    David Liao
    Participant

    That would be great, thank you! And thanks for the code. Unfortunately, I’m not a PHP programmer, so I don’t know how to go about adapting the code for my desired format. I’m looking to just show the time and in EST time. Thank you for the plugin.

    #1606

    David Liao
    Participant

    Hi Jake, would you possibly be able to help me convert this from uk format and time to USA and ET?

    #1619

    Jake Jackson
    Keymaster

    Hi David,

    Sure.

    $date = $lead['date_created'];
    $timestamp = strtotime($date);
    echo date('H:i:s m/d/Y', $timestamp); /* see http://php.net/manual/en/function.date.php for additional date configurations */
    
    #1636

    David Liao
    Participant

    Thanks so much, Jake! Really helped me out.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

You are not currently logged in.