Hot answers tagged

3 votes
Accepted

Display Content Based on Time of Day

Thanks to @Nevsie-Modeten, I reworked the query to the following: {if {current_time format='%w'} == 0 && {current_time format='%G%i'} >= 930 && {current_time format='%G%i'} ...
2 votes
Accepted

Display relative date just for today, with "today" as prefix

You could do this: {if '{entry_date format="%Y%m%d"}' == '{current_time format="%Y%m%d"}'}Today, {/if}{entry_date format="%F %j, %Y"}
  • 17.4k
1 vote
Accepted

Take input as localized time of the user via channel form

AFAIK there is no automatic way to do this kind of time zone adjustment in EE. EE stores times relative to the server's location timezone, or relative a different timezone if you specify it in the CP....
  • 3,587
1 vote
Accepted

ExpressionEngine 3 Date Range

I'd suggest attempting to see if the start_on and stop_before parameters work for with Dynamic Parameters. Run a couple tests to see if this does not suit your needs or work first. Dynamic Parameters ...
  • 126
1 vote
Accepted

Checking if date field variables exist in templates

So, this is an old boat that doesn't always sail well (EE2 conditionals depending on field type [sorry for the random metaphor]). Here is what you should start off by trying. First, make sure you ...
  • 5,900
1 vote
Accepted

Date conditional for over test if over 2 years

You're on the right track, but no bracing and formatting is needed; date variables will output timestamps without formatting, and comparisons can be made properly between integer types. So you can use ...
  • 2,255
1 vote
Accepted

Low Events: wrong date displayed

The URL has the date in {segment_2} and you're using date="{segment_3}". Also, if the entry/event spans multiple days, the start_date will display the event's start date, not the current date given. ...
  • 11.3k
1 vote

Show date listing from today onward

First I thought about the display_by parameter, but the user guide says: The display_by parameter uses the last unit of time provided that has entries. If you display_by="day" then it will show the ...
  • 6,108
1 vote

Show date listing from today onward

It looks like this is your best option. https://github.com/ehousestudio/dailee_entries If you can't make that work, I can probably come up with a combination of PHP and template tags that would work....
  • 5,900
1 vote
Accepted

Hide Grid row based on date

First: a value will always be smaller than itself plus any other value. You need to compare the date against the {current_time}. Second, you need to parse all values before the Math Plus plugin, so ...
  • 6,108
1 vote
Accepted

channel entries starting next at the month

I would use an addon like this: http://www.solspace.com/docs/date_field_filter/usage/ and you could throw on PHP parsing on that template and set a future date var: <?php $enddate = new DateTime(...
  • 5,900

Only top scored, non community-wiki answers of a minimum length are eligible