Stachethemes Event Calendar 5 Dynamic Date Values
Date filters accept static date or a dynamic date value
Static date
Any date in format YYYY-MM-DD e.g. 2024-12-31
or YYYY-MM-DDTHH:mm e.g. 2024-12-31T15:30
Dynamic dates list
- 2_years_ago: 2 years ago from now
- 2_years_ahead: 2 years ahead from now
- 1_year_ago: 1 year ago from now
- 1_year_ahead: 1 year ahead from now
- 6_months_ago: 6 months ago
- 6_months_ahead: 6 months ahead from now
- 3_months_ago: 3 months ago
- 3_months_ahead: 3 months ahead from now
- end_of_next_month: End of next month
- start_of_next_month: Start of next month
- end_of_prev_month: End of previous month
- start_of_prev_month: Start of previous month
- end_of_this_month: End of current month
- start_of_this_month: Start of current month
- end_of_next_week: End of next week
- start_of_next_week: Start of next week
- end_of_prev_week: End of previous week
- start_of_prev_week: Start of previous week
- end_of_this_week: End of current week
- start_of_this_week: Start of current week
- end_of_today: End of today
- start_of_today: Start of today
- end_of_today: End of today
- now: Now
- start_of_this_year: Start of the current year
- end_of_this_year: End of the current year
- start_of_the_prev_year: Start of the previous year
- end_of_the_prev_year: End of the previous year
- start_of_the_next_year: Start of the next year
- end_of_the_next_year: End of the next year
Examples
min_date=2024-12-31
min_date=2024-12-31T15:30
min_date=now
min_date=start_of_this_month
max_date=start_of_today
max_date=6_months_ahead
Shortcode examples
Display upcoming events only:
[stec min_date=now]
Display events from current month:
[stec min_date=start_of_this_month max_date=end_of_this_month]
Display events from current week:
[stec min_date=start_of_this_week max_date=end_of_this_week]
Display current week's upcoming events:
[stec min_date=now max_date=end_of_this_week]