Modifying Display of Date and Time

Home Forums Calendar Products Events Calendar PRO Modifying Display of Date and Time

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15694
    Jeff
    Participant

    Hello,
    I am being a nitwit and apologize for the silly questions that follow,

    I am trying and failing to modify how and where dates display on this page: http://www.brooklyngreenway.org/greenpr/events/

    I want the date in the blue bubble to just be the three letter month abbreviation and the day, or ‘M j’.
    On the event information bar that appears below the description, I want to remove the date altogether and just show the time.

    I’ve poked about with list.php and the date template tags and come up short. Any help would be greatly appreciated.
    Thanks,
    Jeff

    #15726
    Jonah
    Participant

    Hey Jeff,

    It would help to see some samples of code you’re working with trying to modify these things. http://pastebin.com is a good place to paste code and share a link here.

    #15742
    Jeff
    Participant

    Hi,
    I am really just moving bits of existing code about for now. This is the line I want to modify: http://pastebin.com/MUnHxwUr

    I did try modifying the line with the template tag I saw on the FAQs but that didn’t work for me, though I strongly suspect I did something silly.

    echo ”.date(‘M j’,strtotime($e->EventStartDate)).”;

    Thank you for any clues!
    Jeff

    #15749
    Jonah
    Participant

    Hey Jeff,

    Usually when I work with putting dates into bubble like this I like to separate out each date chunk so I can style each piece individually. Maybe this will help:

    Then you can style each chunk by targeting the class selectors for each piece. You’ll need to adapt this to fit your needs but this should help.

    #15750
    Jonah
    Participant

    Let me try that again:
    http://pastebin.com/eN2eHp2H

    #15828
    Jeff
    Participant

    Great, this makes total sense. Thank you so much, Jonah.

    #15850
    Rob
    Member

    Thanks Jonah!

    Jeff, let us know if you need anything else here.

    #975815
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Modifying Display of Date and Time’ is closed to new replies.