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}
...
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
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
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 ...
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 ...
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.
...
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"}
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 ...
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....
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 ...
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 ...
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(...
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 ...
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.
...
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 ...
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....
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 ...
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(...
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 ...
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"
1
vote
Formatting custom date fields within channel entries row hook
My pragmatic solution would be to just enable PHP on output.
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 ...
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 ...
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.
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
date × 104channel-entries × 16
conditionals × 10
date-format × 10
safecracker × 9
solspace × 6
custom-fields × 6
time × 6
matrix × 5
orderby × 5
entry-date × 5
php × 4
entries × 4
calendar × 4
channel × 3
low-search × 3
grid × 3
solspace-calendar × 3
fieldtype × 3
low × 3
low-events × 3
comparison × 3
expire × 3
datetime × 3
timezone × 3