This tag can be used for questions about the Date module, or dates.

learn more… | top users | synonyms

0
votes
1answer
18 views

Create a list of events where an event can have more than one date

I am looking to create a view list of upcoming events but where each event may have more than one date as below: Event 1 - 12th Jan Event 2 - 12th Feb Event 3 - 12th Mar Event 1 - 12th Apr Event ...
0
votes
2answers
27 views

How to count date difference excluding weekend and holidays in Computed Field

How to count date difference excluding weekend and holidays? I should count the number of days between two dates but the weekends and holidays must be excluded from the counting. I used Computed ...
0
votes
0answers
16 views

Display Jalali (Shamsi) Date in Archive View

I have a Persian language website and I need to a archive block in my site. but date of default archive view is Gregorian. I install Datex module and it convert all date of nodes to Jalali(Shamsi) ...
1
vote
0answers
11 views

Migrating dates in the same timezone: convert arguments to subfields?

I have a migration that is successful except for the timezone. $this->addFieldMapping('dest_date', 'source_date'); For some reason the above code causes a timezone conversion to happen between ...
0
votes
0answers
7 views

Rankings and Dates in Views (data architecture)

I'm working on building a small name ranking database, but I'm having some issues coming up with how to architect the data. Here's the scenario: You have a list of 100 names with rankings by year. | ...
0
votes
0answers
9 views

Display an entity whose creation date matches another entity's with EVA?

I am using Heartbeat module to log activities using Rules, however Heartbeat entities/activities have no way (as far as I know) of checking whether they have been viewed or not. To solve this issue ...
0
votes
0answers
23 views

Sort date Year field descending

I have a DOB date field (Date of birth) The default sort order for date Year field is ascending, starting form 1914. so when the user clicks I want the 2014 to come first, now the user has to scroll ...
0
votes
0answers
21 views

Can you hide date field when its date matches with the sites date? [duplicate]

I have a date field in my site and I want it to hide/be invisible when the date I have set is now or matches the sites date. I hope there is a way to do this using Rules.
0
votes
2answers
34 views

Can I hide date field if older than a certian time using Rules?

I want to know if I can hide the values of a date field if the values are older than a certain time. The website is built with Drupal 7, and Display Suite.
-1
votes
1answer
28 views

How do I add a date format to custom block output

I have two custom block output fields that are date function my_three_upcoming_events() { $output = ''; $now_events = views_get_view_result('schedule_list2'); $upcoming_events = ...
3
votes
3answers
90 views

how to create views with month and day in contextual filter

Let suppose I have actor content type, it has a birthday field (it is date ), I want get all actor that has equal month and day of birth,I want to create a views with birthsearch/%/% path, and then ...
0
votes
1answer
44 views

Difference of two Dates in Computed Field

fields: (Date to - Date from) = Total Number of Days How can I compute the total number of days between two dates using Computed Field?
1
vote
2answers
27 views

How to filter nodes using date field

I have a content type of "Class" that has a date field attached to it field_class_date. When a node of the type "Class" is viewed, I would like to display links to other classes that are on the same ...
1
vote
0answers
18 views

Expose Date Filter instead of Start & End Dates

I have a content type event with start and end dates marked. I have create a view with exposed filter, where in users can choose a date and see the event on those days. Right now, view is only ...
1
vote
1answer
106 views

How do I set the exact post date timestamp as Views contextual filter?

I need to display nodes that were created within a certain period of time. Setting Date: Date (node) (content: post date) as contextual Views filter works super smooth. Now when I call ...
0
votes
0answers
12 views

Calculate a date for “Scheduled evaluation date”

I'm trying to create a rule to send a email on a customer birthday. For that, I created a contact type with a date field which has day/month/birth_year. (I want to have the birth year for future ...
0
votes
0answers
5 views

'Whole month' date option for dates without a specified day - but only for some nodes

I have an event system which has a standard date field in the content type. This field is collecting: Yeah Month Day Hour Minute With this setup, the day, hour and minute fields are required when ...
0
votes
0answers
16 views

Extending the Year range in Popup Calendar

I am trying to extend a year range of a popup calendar in drupal 7 but have been unable to see where I can do this. After doing more research, I discovered that I can change it through the 'More ...
3
votes
1answer
47 views

Display all nodes posted on a certain month and day between 1990 and 2014

I want to display all nodes created on lets say, March 30 (between 1990 to 2014). Views contextual filters seems to display nodes posted on March 30 this year, how do i make the contextual filters ...
0
votes
1answer
29 views

Is it possible to custom Event Date format?

On the Drupal 7 Upcoming Event, I would like to show the Event Date with abbreviated "Day, Month date, Year - Time". However, There an option that I like, which is "Fri, Mar 28, 2014 @ 4:55pm", but it ...
4
votes
2answers
60 views

How do I theme repeating dates output field?

I currently have a calendar of events and each event has multiple repeating dates. Now when i display them it shows all those repeating dates in a long list. How would i theme this to show only if ...
1
vote
1answer
42 views

In Drupal Fullcalendar, how do I add an additional field to the calendar view?

I need to add one more field to the Fullcalender views. Anyone know what code I need to edit to take care of this?
1
vote
0answers
42 views

Saving a date field with an 'all day' date value programmatically

I am trying to set the value of a date field to be 'all day' - but the format is being saved incorrectly. The code where the value is being set: $kw = ...
0
votes
2answers
18 views

Configuring the Popup Calendar Widget

Currently I have a date contextual filter. When I click the date field the popup calendar displays. when I click on a date (for example today's date) it displays as 3/18/2014, but I would like it to ...
0
votes
1answer
24 views

Display nodes by a date field from/to

I have a content type with a Date text field. User can enter from and to dates to control when this node will display. In my views filter, I'm adding both the from and to fields. 'From' is less than ...
1
vote
0answers
51 views

How to boost relevance of Search API solr with creation date?

We have replaced Drupal's core search with SolR but we have noticed a recursiveness issue regarding the search results, for ex. when searching “executive committee”, documents created in 2006 and 2007 ...
0
votes
1answer
15 views

Drupal Calendar, why some events appear as “all day” events even if they are not “all day” events?

Why some events appear as "all day" events even if they are not "all day" events in Calendar Views? As you can see, these events have just a start date defined at 00:00. But they are not "all day" ...
1
vote
2answers
68 views

EntityFieldQuery select any entities created today (where clause)

I have an entity and one of it's properties is a timestamp, set when it was created. I want to use EntityFieldQuery to load entities that were created today. Normally if I was writing a query to do ...
1
vote
1answer
29 views

Unable to import date from csv with Feeds module

I have a simple csv file I'm trying to import with feeds. Most of the fields are going in just fine, but the dates are failing. And after following the process through in a debugger, I cannot see ...
1
vote
1answer
16 views

Views: how to display different buttons before/after associated date?

I've got a node that has a deadline date field. I am configuring a view that shows a list of all the nodes. If we are past the deadline for a given node, I want to show "closed" text. If not, I ...
0
votes
0answers
20 views

calculating with View calc, view php, aggregiation plus or what?

for Drupal 7 with views 3, what is the best way to have column that get calculated on the go, with possible filter. I need to to calculate duration from a given date and today in a node type ...
1
vote
1answer
24 views

Views expose filter of start and end dates

I want an expose filter of start date and end date. I want to show the events that have start or end date between these two dates. If end date is not given in filter then display all the events having ...
0
votes
0answers
13 views

Do I need date_api to manipulate these dates?

I'm working on a module that needs to add or subtract time from a date provided by a Date field. I need to support all three database storage types: Date (Y-m-d H:i:s), Date ISO (Y-m-dTH:i:s), and ...
0
votes
1answer
23 views

Filter nodes by date ( excluding year ) show upcoming/previous based on today

i have content type called Race. This races happens every year so i want to have a page that show latest 5 upcoming races and past 5 races. Is there a way that i can disable year in date api when ...
0
votes
1answer
57 views

jquery date picker in views exposed filter changes the date values

I have a node type "tasks" and created a view so that current logged in user can see his/her assigned tasks. I have used a "time ago" formatter in the field "deadline" which shows the remaining time ...
0
votes
0answers
17 views

Calender Module with date +search tabs + export calendar + availability

I am trying to build a calendar like this one in drupal: ...
0
votes
0answers
21 views

Filter date field by unrelated field

I have used ECK to create an Entity "Statistic" with two bundles: "Hours Worked" and "Incidents". I need to create a view whereby the hours worked is filtered to only display the hours since the last ...
0
votes
1answer
12 views

Output filter for dates

How can I change the output of dates in a long text field based on the locale? I was looking for a module that might work with WYSIWYG to denote a date within a text field. My goal was to allow ...
0
votes
0answers
18 views

Views date aggregation

I'm creating a view that lists performances (of circus shows). Then I have a performances type, that is related with shows type. I'm listing performances like this: Show - event, place - date Now ...
0
votes
2answers
100 views

Custom field validation with date time field

I have a content type called 'Event' in which I have used one date time field for storing the event starting and end time. Now I should have a field validation for a that date time field. For example, ...
0
votes
0answers
35 views

date issue in filter

In a view I need to filter records on base of date of birth, there is one record with date of birth in 1964 when I tried to filter this record it does not appears. neither when I give exact year 1964 ...
1
vote
1answer
46 views

Datepicker and form_state with different formats

I'm using custom form for getting results from a web service. This is a part of my form <?php $form['starting_date'] = array( '#type' => 'date_popup', '#title' => 'Starting date', ...
0
votes
1answer
16 views

Include date module in custom module

I have а custom module that will show some reports. It will have two textfields, so when a user clicks one of the fields "starting date" and "end date" a calendar will popup and will able to select ...
0
votes
0answers
18 views

Format a Date in email sent from privatemsg

In the email sent from privatemsg, I have a date that is being printed in ISO format. Example: [privatemsg_message:field_arrival_date] prints in the email as 2014-02-03T00:00:00. I just want the date ...
0
votes
1answer
15 views

Edit date field html

I would like to edit the html produced for a field. Is that possible to do this through a hook? I want to convert "date1 - date2" to "date1 to date2".
0
votes
1answer
93 views

Change end date automatically after changing start date

I would like to be able to automatically change the value of the end date to be the same as the start date after changing the start date. Ex: right after changing the start date to 12-12-12, the end ...
1
vote
1answer
45 views

How can I group view results based on the week of the year using a date field?

I have a list of events (custom content type event) shown in a view. There are several events each week. Each event has a date field, date, that records the date that the event will be held. I ...
0
votes
3answers
41 views

How to change the label of the “To:” field in the Date Module

This doesn't seem to be the kind of thing you can change using hook_form_alter() unless I'm missing something. The label of the "From" field can be any value you want, but the "to" field, if you have ...
0
votes
0answers
39 views

Missing groupby times in week and day view displays

I have a Calendar view set up in Drupal 7.26 with the default displays; month, week, day, etc. All is well except for missing groupby_times values for the week and day views. I get this error in the ...
0
votes
0answers
39 views

Base a Rules Condition on a Date Field

I have a rule for one of my content types that is triggered when I save the node. There is a date field that the user has to fill out when creating the node. I want to set an extra condition in my ...