Hot answers tagged

4 votes
Accepted

Conditional to show entry by date range?

The following conditional will achieve what you want: {if {current_time format="%m"} <= 6} <p>do Jan through June</p> {if:else} <p>do July through December</p> {/if} ...
user avatar
  • 256
3 votes

How to make expiration date required?

I found this add-on by typing "expressionengine, expiration date required" into Google: http://devot-ee.com/add-ons/required-expiry-date
user avatar
  • 2,724
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'} ...
user avatar
2 votes
Accepted

Get Entries older than a certain year

The start_on="2010-01-01 00:00" parameter should do the trick... "You can specify a particular date/time on which to start the entries. Only entries that are on or after this date will be included in ...
user avatar
  • 325
2 votes

Pass a UNIX Timestamp as a URL Segment to display entries edited since that date

I believe, your options are: to change the format of date you're using on the segment_2, which isn't a good idea because EllisLab can some day finally normalize all date fields; to reformat the date ...
user avatar
  • 6,108
2 votes

How can I hide an expired row in a Matrix field?

You can try to use search: parameter with combination with {current_time}* {my_matrix_field search:date=">{current_time"}"} usually date fields is keep data in timestamp format, so it must work. ...
user avatar
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"}
user avatar
  • 17.4k
2 votes

How to show entries for next week or last week

You could enable php, grab the current time and add as much time as you need, then use the start_on parameter. Or here's a plugin you could use: http://devot-ee.com/add-ons/dt-plugin Maybe something ...
user avatar
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....
user avatar
  • 3,572
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 ...
user avatar
  • 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 ...
user avatar
  • 5,900
1 vote

AJW-Export date formating in CSV is off 6 hours

After playing around and learning about SQL I have found solution . It works. For thouse who are strangling here it is. Please NOTE the difference from the above. DATE_FORMAT(DATE_ADD(from_unixtime(...
user avatar
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 ...
user avatar
  • 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. ...
user avatar
  • 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 ...
user avatar
  • 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....
user avatar
  • 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 ...
user avatar
  • 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(...
user avatar
  • 5,900
1 vote

Custom url with date and category_name

Yes. Although seg2cat will make your life easier. The index template inside your template_group will catch anything (depending on your use of other add-ons such as Structure or Pages and your strict ...
user avatar
  • 5,353
1 vote

Excluding entries based on Date Field Type

can't you just use expire date field under the date tab? and show_expired="no"
user avatar
1 vote

Formatting custom date fields within channel entries row hook

My pragmatic solution would be to just enable PHP on output.
user avatar
1 vote
Accepted

Accessing 'Calendar' field types with the channel:entries tag

Calendar data can only be pulled from Calendar tags. The Calendar widget custom field does not output any useful data (unless you need the calendar ID) if directly used in {exp:channel:entries} like a ...
user avatar
  • 6,139
1 vote

Conditional Examination of Dates within a Matrix Field

You can search to see if there are any rows which have a current or future date, then proceed accordingly: {if '{calendar:total_rows search:date=">={current_time}"}' > 0} Your calendar is ...
user avatar
  • 17.4k
1 vote

Change the expressionengine publish entry datepicker

You would have to prevent default to stop the existing datepicker opening on input click. You could then use jQuery UI datepicker to add your own datepicker and customise it.
user avatar
  • 431
1 vote

Can you remove the timestamp from the value generated by the EE date fieldtype?

I came across this post while attempting to solve a similar problem; hopefully this will be helpful to others who need the same functionality in the future. Event Helper is a plugin that comes with a ...
user avatar
1 vote

Can you remove the timestamp from the value generated by the EE date fieldtype?

Can you simply remove the timestamp after the fact with something like CE String? Or, don't use the EE date field at all. Set up your own custom field, use a javscript calendar like jQuery UI ...
user avatar

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