CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event Listing date format
Pages: [1]

Author Topic: Event Listing date format  (Read 1790 times)

jrthor2

  • Guest
Event Listing date format
January 17, 2010, 05:16:42 pm
How do I change my dates from showing like:

February 27th, 2010 8:00 PM
through
February 28th, 2010 12:00 AM

To:
02/27/2010 8:00 PM - 02/28/2010 12:00 AM

Thanks!

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Event Listing date format
January 17, 2010, 11:19:03 pm
jrthor2 :
To change the date formatting to above, you might want to change the Complete Date and Time in
Administer → Configure → Global Settings → Date Formats to %m/%d/%Y %l:%M %P

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Event Listing date format
January 18, 2010, 06:33:10 am
Here custom template feature might play a vital role, and you can have customized date display only for event listing.

for this you need to customize event listing template and specify/pass your date format to crmDate function.

template for event listing is located here : templates/CRM/Block/Event.tpl

go to templates/CRM/Block/Event.tpl line around 8

Update line : {$ev.start_date|truncate:10:""|crmDate}<br />
with : {$ev.start_date|truncate:10:""|crmDate:'%m/%d/%Y %l:%M %P'}<br />


hope this help

kiran
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event Listing date format

This forum was archived on 2017-11-26.