Participants Database
[resolved] Can output of Date Field be formatted? (4 posts)

  1. dleifer
    Posted 1 year ago #

    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?


  2. xnau
    Plugin Author

    Posted 1 year ago #

    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"; ?>

  3. dleifer
    Posted 1 year ago #

    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.

  4. dleifer
    Posted 1 year ago #

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

    Thank you again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Participants Database
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic