Questions tagged [date]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10 votes
3 answers
1k views

How do I format the date in a foreign language?

I currently have the task of building an EE site in Chinese. All is going well so far, but I have a problem trying to get the date shown in chinese. Anyone have a solution to this? I'm just using the ...
Jim Pannell's user avatar
8 votes
3 answers
2k views

Is there a way to display "last edit date" when viewing entries in the admin panel?

I am trying to find a way to view the last edit date of entries while in the control panel. I haven't found an EE2 plug-in or module, and have no idea of any other way to do it. Does anyone have any ...
Alexa L's user avatar
  • 173
5 votes
1 answer
72 views

Why are my entry dates displaying incorrectly in Safari?

I'm not sure what could be causing this. Dates are displaying incorrectly in Safari on my site. They are displaying as 1 day before the actual date that is set in the CP. I've never seen this and ...
eddidit's user avatar
  • 53
4 votes
4 answers
718 views

Date field type - remove "Localised/Fixed"

How do you remove the localised/fixed dropdown on the date fieldtype?
Richard Frank's user avatar
3 votes
2 answers
3k views

How to generate a list of years dynamically starting with this year

Wondering how I would use either EE or PHP to dynamically generate a list of years starting from this year. I'm doing this for a credit card expiry select box that needed to use EE global variables ...
Jean St-Amand's user avatar
3 votes
3 answers
202 views

How to display a date if entry is only for one day only

I have an entry that has a date. If it starts and ends on the same day, it should only display the day. Like 'September 21, 2013'. But right now, my code has it like this: <strong>Date:</...
billpixby's user avatar
3 votes
2 answers
514 views

Dates before 1900 (even 1800) in EE 2.6?

With the changes to the way dates are handled in EE 2.6, can dates be set prior to 1900 (or even 1800) using the Date form field?
Brett's user avatar
  • 191
3 votes
1 answer
403 views

Automatically set expiration_date to be 24 hours after entry_date in SafeCracker form

I've got a SafeCracker form that contains (amongst other fields) an entry_date field and an expiration_date field: <input type="text" name="entry_date" id="entry_date" value="{entry_date}" ...
Stephen's user avatar
  • 1,349
3 votes
2 answers
135 views

Formating entry date like Twitter or Facebook

Is there a way to format the date output so it reads like it does on Twitter or Facebook. For example if a post was posted 2 days ago the output would be '2 days ago', the same goes for weeks, so if ...
zizther's user avatar
  • 320
3 votes
2 answers
1k views

dd-mm-yyyy date format in Control Panel

I want to show the date format in european style (dd-mm-yyyy). I changed and configured all settings to European. $config['default_site_timezone'] = Europe/Amsterdam doesn't solve the problem. Can ...
Ibe Garritsen's user avatar
3 votes
1 answer
164 views

EE date timestamps have different values for the same date/time

i have a list of movie screenings sorted by date. now the client wants to be able to order additionaly with a custom order field, i don't get to the second order_by however... it seems when you enter ...
Dave Driesmans's user avatar
3 votes
1 answer
231 views

Display Content Based on Time of Day

I'm trying to show content based on the day and time of day. Specifically, the site I'm working on offers a live-stream every Sunday from 9:45 - 1:45 and we want to feature the live-stream on the ...
Brad Hopkins's user avatar
3 votes
1 answer
329 views

date field type displays as a string

I'm using a date field type to display the date of an upcoming event, but when its rendered it displays as a string of numbers. For example, one date displays as "1356393654". I'm not using any plug-...
Jon's user avatar
  • 63
2 votes
1 answer
2k views

How do I compare date values?

I would like to create a conditional based on the value of a date field compared to today's date. In English it would be: if Expiration Date is less than today's date set class to "expired" Here is ...
forrest's user avatar
  • 1,068
2 votes
2 answers
82 views

Looking for a way to store office holidays to display custom messages on days we're closed

On our company contact page we have a footer with contact information that should change based on whether or not we're open. I'm using Low Variables to store this information and have standard office ...
Brandon Durham's user avatar
2 votes
3 answers
858 views

Conditional based on the age of an entry

I want to embed a template if the entry_date of an entry is less than a certain age, and display something else otherwise. Is there a good way to do this natively? With addons? I tried the timespan ...
UltraBob's user avatar
  • 943
2 votes
2 answers
218 views

How to make expiration date required?

I need to set expiration date as required for entries on a channel. So is there any way to set expiration date as required for an entry? Thanks
codegeek's user avatar
  • 160
2 votes
1 answer
150 views

Expiration date for a row

I have a new problem that I can't resolve yet. I want to set an expiration date in the matrix for each row. I have a column "date" that I need to use as an expiration date. In search I don't want to ...
Román's user avatar
  • 31
2 votes
1 answer
3k views

PHP Error - date_default_timezone_get()

Moved an EE site (v. 2.6.1) from local to development server. On the development server, I'm getting the following: A PHP Error was encountered Severity: Warning Message: date_default_timezone_get(...
Todd's user avatar
  • 752
2 votes
1 answer
791 views

Simulate date/time in PHP for Expression Engine

We're running an annual event website and we're keen to simulate the site for a different date. In other words, add say 3 months to the current date/time so we can try out some options for when the ...
Andrew Armitage's user avatar
2 votes
2 answers
191 views

ExpressionEngine 3 Date Range

I am trying to load entries based on a date range that is selected by the user. On the front end of the site I have two input fields, the start day and end day of the date range. In the control panel, ...
Brianne's user avatar
  • 67
2 votes
1 answer
72 views

Postmaster Expiration_Date In "Post Date Specific" Field

I'm currently looking to send out an email using Postmaster when an entry expires. My entry will be assigned a expiration date, so im curious if I can use this variable in the "Post Date Specific" ...
Jordan's user avatar
  • 67
2 votes
2 answers
812 views

Date input field formatting problem in channel form

# Goal Display multiple entries using {exp:channel:entries} and within each entry use a {exp:channel:form} to allow editing the entry’s content. # Problem Using this method, I’m able to display and ...
user avatar
2 votes
2 answers
409 views

Sort by multiple dates

I have a Newsroom page that combines "In the News" channel entries and "Press Release" channel entries and I need to sort by different dates. Press Releases use the entry_date because they go live on ...
Stuart McCoy's user avatar
  • 1,146
2 votes
1 answer
358 views

Issues with date output with DropDate add-on

I'm using Stephen Lewis' now unsupported DropDate add-on to simplify selecting dates in the Control Panel. (Chiefly because I'm trying to use a fieldtype that allows me to disable selecting times. I ...
Mark J. Reeves's user avatar
2 votes
1 answer
53 views

Extending expiry dates of certain entries?

A third party is providing an XML feed of courses for me to integrate into an existing channel, which I'm planning to use Andrew Weaver's excellent Datagrab module for. My problem is that some of ...
BellamyStudio's user avatar
2 votes
3 answers
251 views

EE worldwide date and times for office opening hours

We have a website, that displays a list of regional offices with their opening and closing times. Part of the design requires that each office is styled to show if its is open or closed. Our initial ...
paulcripps's user avatar
2 votes
1 answer
101 views

Basic conditionals not working after update

I just did some really really basic updates to my site, and now I'm having some extremely weird behavior. Take this conditional for example: {if '{expiration_date format="%U"}' <= '{current_time ...
Steven's user avatar
  • 753
1 vote
2 answers
372 views

Expire Entry X days after status changed to X

I would like an entry to fall off of a Channel Entries loop when X days have passed since the status was changed to X. Is there an easy way to accomplish this? Or even another method? I could have ...
Jacob Graf's user avatar
1 vote
1 answer
368 views

Conditional to show entry by date range?

Have an instance where there are two entries - one needs to be shown for six months of the year and the other for the second six months.... looking at a conditional which essentially says: if ...
segovius's user avatar
  • 415
1 vote
3 answers
244 views

Limit display of Channel Field based on date

I am asking myself if there is a way of displaying a Channel Field based on date. I have a dedicated channel for the site's indexpage and randomly the client wants to display announcements eg for ...
Marc's user avatar
  • 502
1 vote
1 answer
80 views

One most recent entry from multiple channels

I'd like to return 5 entries from 5 channels in a list, the list being comprised of: the one most recent entry from each channel in order of date A simple exp:channel:entries loop with a limit of 5 ...
Travis Smith's user avatar
1 vote
1 answer
272 views

channel form date field customize

How should I use third party date picker? Because EE date field seem not user friendly. 1) If my date is to insert birth date, then it is hard to navigate thru years. 2) how should I take away time ...
Hs Tung's user avatar
  • 155
1 vote
1 answer
49 views

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

I have a Matrix field which is being used for late availability vacancies for a tourism website. Inside the Matrix field there are two columns, Date and Description. Rows from the Matrix field will ...
Adam's user avatar
  • 411
1 vote
1 answer
49 views

Expresso store - {order_date} in 2011-04-15T17:58:41.000000 format

We need to export the date of orders into a CRM and it needs to be in the following format: 2011-04-15T17:58:41.000000 The current {order_date} is exported in unix format, is it easy to change this ...
Nick's user avatar
  • 693
1 vote
1 answer
107 views

Checking if date field variables exist in templates

I'm having a strange issue where I can't seem to determine whether a standard date field in EE2 contains data. For the date variable {birth_date}: {if birth_date} Do stuff {/if} In my code, this ...
Russ's user avatar
  • 13
1 vote
1 answer
253 views

Formatting custom date fields within channel entries row hook

In Shortlist the {exp:shortlist:view} tag extends the channel->entries() method for it's parsing needs. This works and allows for full custom tag parsing without much extra effort, but runs into ...
Joel Bradbury's user avatar
1 vote
2 answers
51 views

AJW-Export date formating in CSV is off 6 hours

I'm using ajw_export for my CSV, I have: DATE_FORMAT(from_unixtime(exp_channel_data.field_id_454), '%h:%i') AS Start_Time, works but shows time with 6 hour difference. I have tried: DATE_FORMAT(...
user1174849's user avatar
1 vote
1 answer
342 views

Change the expressionengine publish entry datepicker

As a programming project I have a task to change expressionengine default datepicker for inserting date in publish or edit entry form with a custom one! I know where the default datepicker file is ...
Armin Abbasi's user avatar
1 vote
1 answer
397 views

how to do search between two dates from date and to date using low search in expressionengine

I'm not getting the expected results with low search range. Here is my search form {exp:low_search:form collection="press_releases" required="keywords" result_page="/communications/result"} <...
Jignesh Mesvaniya's user avatar
1 vote
1 answer
97 views

Solspace's Date Field Filter - can it do date headings?

I've started using Solspace's Date Field Filter plugin. Is there any way to make the plugin show yearly headings? Something equivalent to EE's {date_heading display="yearly"}, which doesn't work with ...
SamC's user avatar
  • 267
1 vote
1 answer
228 views

Date Field Format not working properly

I have this code <div class="control-group {if error:birthdate}error{/if}"> <label class="control-label" for="birthdate">{label:birthdate}</label> <div class="...
developarvin's user avatar
  • 2,347
1 vote
1 answer
161 views

Dropdate Array Error

Using Dropdate 2.2.0 and EE 2.5.1 Outputting the field gives me this: A PHP Error was encountered Severity: 4096 Message: Argument 2 passed to Dropdate_ft::replace_tag() must be of the type array, ...
Chad Crowell's user avatar
1 vote
2 answers
1k views

Using an EE date tag with formatting in php code

I'm using some php code (output parsing) in a template, between {exp:channel:calendar} tags. I have a line assigning the value of a custom date field to the php variable %endDate. Then, I need to test ...
Penega's user avatar
  • 23
1 vote
1 answer
792 views

Orderby Custom Date Not Working

I am using ExpressionEngine 2.5.2 and am unable to get my entries to sort by a custom date field. I have two sites through the Multisite Manager that I am pulling entries from. On both sites, the ...
jennetcetera's user avatar
1 vote
2 answers
298 views

SAEF + Matrix + Date_field + custom layout, datepicker not displaying

I have a Matrix with a field called end_date and its cell type set to Date. When the Matrix field is placed inside the following Safecracker form, the end_date datepicker displays correctly in the ...
Lloyd Hill's user avatar
1 vote
3 answers
126 views

Channel Field Date: Ignore timestamp during comparisons

I have a channel field named start of campaign and one named end of campaign. I want to make do a conditional that says if today is equal to or later than the start of campaign AND today is before ...
Anthony 'Ants' Nguyen's user avatar
1 vote
2 answers
587 views

Custom Datepicker (Datedropper.js) with Channel Form Grid & Date Fields

I have run into an issue I cannot figure out. The situation is I have a Channel Form that has a bunch of Grid field types on with a date field. The issue is I would like to use this (datedropper) JS ...
Andy Williams's user avatar
1 vote
2 answers
269 views

Compare entry date with 90 days ahead

I need to display a message if an entry is more than 90 days old. The below code doesn't appear to be working, any tips on how to get this done? {if {current_time} > {entry_date} + 7776000 } &...
KoalaKid's user avatar
  • 487
1 vote
1 answer
43 views

Is it possible to set up a custom date range for a Low Entries tag that looks for events in the current school year?

I'm having trouble figuring out how to do this - I have a Low Events template tag that I'd like to set up with a custom date range that searches for events within the current year, BUT that current ...
user1959344's user avatar