• Resolved hungkkv

    (@hungkkv)


    Thanks for great plugin!
    Please help me the problem:
    I use the mergetags {entry:date_created} to display time user submit form on the pdf layout.
    The result is UTC is not local time. So may i hidden the time (H:i:s) and just keep date (Y-m-d).
    Ex: 2019-03-01 9:00:00 to 2019-03-01
    Thanks so much!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Hi there,

    I don’t believe Gravity Forms has a merge tag to display the submission date in the local timezone, or even just the UTC date without the time (here’s all supported merge tags). There is the {date_dmy} tag, but it displays the current date and not the submission date. That means if you regenerate a PDF on a different day the date will show the regenerated day, and not the initial submission date.

    If you’re creating a custom PDF template, use the $form_data['date_created'] array instead.

    • This reply was modified 6 years ago by Jake Jackson. Reason: Include link to the custom template documentation
Viewing 1 replies (of 1 total)
  • The topic ‘Hide time on date creat {entry:date_created}’ is closed to new replies.