WordPress.org

Support

Support » Plugins and Hacks » Participants Database » [Resolved] Can output of Date Field be formatted?

[Resolved] Can output of Date Field be formatted?

  • Excellent Plug-In. Thank you!

    Can the output of a Date Field be formatted? I have a date field populated with full dates: January 10, 2010, but I need to display only the Month and Date: January 10. Is there a way to format this by short code or some other way?

    Or is the solution to create two more fields, “Month” and “Day” and just display those?

    https://wordpress.org/plugins/participants-database/

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have two options, you can either change to general time format of your site, or you can use a custom template for your list. Read this: How to Create Custom Templates

    Thas add this to your template, at the top:

    <?php Participants_Db::$date_format = "F j"; ?>

    Thanks for the quick response. I have started reading through the Custom Template options and I think I understand what to do.

    Please consider this case resolved and you can close it.

    Thanks again.

    I implemented your suggestion and code and it did just what I need.

    Thank you again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Can output of Date Field be formatted?’ is closed to new replies.
Skip to toolbar