Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Comparing Dates with Current Date

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #39746
    gilgimech
    Participant

    Hi all,

    I’m making a events listing for a WordPress theme. I’ve got everything working except, when I’m displaying the events. I can show upcoming events with this


    if($current_time > $raw_end_date){
    showstuff.....
    }

    Now this will show all the up coming dates, but not events on "todays date". I've tried to use the '>=' operator but it still doesn't show the 'todays date' event.

    Does anyone have any ideas for this?

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.