Check if current day is in displayed week view

Home Forums Calendar Products Events Calendar PRO Check if current day is in displayed week view

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #946772
    Butch Roy
    Participant

    Sort of a strange request here: Is there a function or method that checks to see if the current day (today) is in the Week view that is being displayed? For example, if I were looking at this week, it would return true. But if I were looking at next week or last week, it would return false.

    The reason I ask is that I am making the Today column larger than the others using the percentage function in SASS, and I need a way to differentiate a week with today in it and one without.

    Thanks

    #957237
    George
    Participant

    Hey Brian,

    First of all, I cannot apologize enough for the insane delay in response time here! There are a handful of support threads that for one reason or another seem to have totally fallen through the cracks of our support workflows – I messed up hugely here, and even though I’ve gone through looking for old issues to ensure threads don’t get ignored like this one did, it somehow missed my radar and has been sitting here unaddressed for far, far too long.

    Now that we’re actually here and will address your issues, I’m curious – where do you stand in regards to your original week-view-related topic here? https://theeventscalendar.com/support/forums/topic/tribe_events_week_is_current_today-not-returning-true/

    Were you able to write a custom function like you mention in that thread, or are you still at a loss here for how to calculate whether the current day is within the selected week?

    #984053
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Check if current day is in displayed week view’ is closed to new replies.