Splitting the Start/End Dates from the Start/End Times

Home Forums Calendar Products Events Calendar PRO Splitting the Start/End Dates from the Start/End Times

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20708
    Nathan
    Member

    I’ve been looking through the documentation and the forums and haven’t found anything about how to split the start/end date from the start/end time. Is there a way to do this without processing the start/end date through PHP?

    #20749
    Jonah
    Participant

    Hey Nathan,

    Yes, you can easily do this by just using two function calls for tribe_get_start_date() like so:

    echo tribe_get_end_date( $post->ID, false, 'D. M j, Y' ); //show date
    echo tribe_get_end_date( $post->ID, false, 'g:ia' ); //show time

    Is that what you're looking for?

    - Jonah

    #20773
    Nathan
    Participant

    That’s exactly what I was looking for! Thanks!

    That also brings up the question, where can I go to check out all of the functions and their variables?

    #20777
    Jonah
    Participant

    Hey Nathan,

    Glad that helped! You can check out all functions, etc. in our documentation: https://theeventscalendar.com/support/documentation/

    Let me know if you need anything else.

    Cheers,
    Jonah

    #977099
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Splitting the Start/End Dates from the Start/End Times’ is closed to new replies.