• Resolved hollosipeter

    (@hollosipeter)


    Hello!

    You have a mu-plugin for listing forminator forms on the front-end with a custom settings – just list the submitted forms of the current login user.
    I modified the code with try to put this:
    $submission_date = (new DateTime($entry->date_created))->format(“Y-m-d H:i:s”);

    Date is correct, but creation time is always 00:00:00 – how can I list the full date with time?

    Thanks,
    Peter

    This is my code now (and the screenshot what I see on the frontend – you can see 2 files here, a jpg and the code php:
    https://www.hollosipeter.hu/forminator/

    • This topic was modified 1 year, 8 months ago by hollosipeter.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @hollosipeter

    I hope you’re well today!

    This is because “date_created” only contains date itself and not time.

    To get also creation time you would either need to use both

    $entry->date_created
    $entry->time_created

    or replace “date_created” with “date_created_sql” which contains full date/time (in format of 0000-00-00 00:00:00).

    Best regards,
    Adam

    Thread Starter hollosipeter

    (@hollosipeter)

    Hello Adam! date_created_sql is perfectly working ??
    Thank you and regards:
    Peter

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t get frm creation time’ is closed to new replies.