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

learn more… | top users | synonyms

0
votes
0answers
16 views

Drupal view filter between two dates on published date

I have a problem with view and filter on published date. In the view i display all my contacts with their published date. It's the published date of the contact not a field date in entity contact. ...
0
votes
0answers
20 views

Relative date in grouped filter does not show textfield for data

I have a problem with grouped filters. I want to specify a relative date but a textfield does not appear. My result was I want to achieve something like this below. Thanks in advance. Credits to ...
0
votes
1answer
9 views

Mimic webform date field in custom form

In one instance we are using a webform to create a form and it uses field type 'date'. The end result looks like this: I would like to mimic this, but in a custom form. Currently what I have is: ...
0
votes
1answer
77 views

Calculate time between start and end time

I'm building a website where I need to know the time (in hours) between the start and end time from a date field. So I want to know how long it took. It's usually from one day to another, sometimes ...
0
votes
0answers
10 views

How do I get the timezone with “User's timezone” setting?

In Drupal 7 if you set a date field's time zone handling option to "Date's time zone", you get a Timezone selection when entering a date but the date is always displayed in that timezone. If you set ...
0
votes
1answer
6 views

Add Additional (Term Reference) Field to repeating Date & Time Field for Locations

So I have a question that I am not quite sure how to handle in Drupal. (I come from a Wordpress background). So I have an Event Content Type. In this event CT I have a repeating Date/time field and ...
3
votes
1answer
30 views

Date math in View table

Sorry for any incorrect terminology; I'm new to Drupal so it's possible that I'll mess up the Drupal-specific vocabulary. I'm putting together a View->Page with a Table Format. I've got a field in ...
0
votes
1answer
16 views

Drupal forms, how to output content of a date (array)

I have a form made with the Drupal Form API, there is a date field which result I want to output to the user in an email. I'm only getting array as output, so how do I access the keys and values? ...
0
votes
0answers
8 views

Can a date field's value be inherited by other date fields?

I'm making a site that features several content types with their own date ranges, all of which should be relative to a parent content type's (Event) date range. i.e. Event date range L ...
0
votes
1answer
34 views

Minutes in date value displayed never the same as value entered [closed]

I have a weird bug. On many content types, I have a Date field using the Pop-up calendar widget with the format "February 3 2014 - 2:35". When that date is displayed, the minutes are never the same ...
0
votes
0answers
51 views

The date pop up/date picker not working

Drupal version7.34 Date of Birth Field type:-Date (ISO format) Widget :-Pop up calender I have the same problem as given in the site.I have tried the site in two browsers Internet ...
0
votes
1answer
22 views

Setting event date in views

i have events page on my Drupal and it is showing events until the relative date (is greater than) "now" which means the event disappears from the table on the starting date of the event. Can you ...
0
votes
1answer
15 views

Views: Show All Distinct Dates

I have a custom content type with a date field that includes year, month, day, hour and minute. If I create a view of all the node start dates I get something like this 2014-10-23 13:00:00 2014-10-24 ...
0
votes
0answers
9 views

Date iCal feed and caching output

I am using the Date iCal module to create an ical feed of events that can be imported from the url into a calendar program such as Apple Calendar, Outlook, or even Google Calendar. The feed/url work ...
0
votes
1answer
17 views

Change behaviour of Date at 00:00

Is there a way to change how Date works when saving dates with the time in 00:00:00? I have a calendar view, and I would like to avoid having events showing as all-day when the are saved with a time ...
1
vote
1answer
24 views

Programatically altering a field formatter in Views

I'd like to create a new (date) field formatter in Views, but also keep the existing formatters intact. As of now, I've managed to use hook_field_views_data_alter() to entirely replace the exiting ...
0
votes
0answers
19 views

How to alter the date “All Day” checkbox value from form alter?

I am working on module that setting the default value for the date field with popup calendar. I am setting the default value from hook_form_alter(). In the date field settings i enabled the "Display ...
0
votes
0answers
9 views

Translated dates in Views

I have a View which outputs the node creation date. But the site is multilingual. The problem is that I cannot choose a custom date format, as the Views just accepts one of a list. If I use a custom ...
0
votes
1answer
16 views

Make field editable after date

Is it possible to make a field either editable or appear after a date? I have a content type with a Title, Date and 'Winning Numbers' field. The winning numbers field should only be fillable/editable ...
0
votes
1answer
17 views

How can I delete nodes when an arbitrary date has past?

I have a situation where future events will be posted to the website in question. These future events are a content type with a date field using the date module. I wish to automatically delete these ...
0
votes
2answers
43 views

How to change the date format for date entity field

I created an entity with date field. Currently the date is being output in the format "mm/dd/yyyy": How can I use the format "dd.mm.yyyy"? I couldn't find any settings, related to it, in the field ...
0
votes
1answer
11 views

Content type with date groups

I currently have a content type called Training from which I have created a node for each training course I have. Each node has a multiple date field for when a course runs over more than one day (not ...
1
vote
2answers
81 views

How can I show Arabic dates in a block?

I have used Drupal7 and I want to add Arabic date in Hijri formate; I have used the Calendar Systems module, but it doesn't add dates as block. How can I implement hook_block() to show dates in Hijri ...
0
votes
0answers
28 views

Drupal 8 - compare dates in View

I'm trying to build a new View in Drupal 8. I want to display list of News. Each item has field_date where is date (without time) stored. And second field is body with basic text information. I'm ...
1
vote
0answers
46 views

Load ajax events view based on calendar block click

I have configured Calendar module for event listing, I have a mini calendar block that when clicked should load the events views without refreshing the page. $("#block-views-calendar-block-1 ...
0
votes
1answer
26 views

Date Repeat Node Generator Module

I have a Drupal 6 site and am looking for a way to allow my content admins to set up repeat events. I have that set up, but all the repeats are not their own node. I want them to be their own node, so ...
0
votes
0answers
19 views

How to configure the Publication Date Module for 6x

I have a Drupal 6 site with a publishing workflow. I'm trying to set it up so that News articles have the Published date on them instead of the default, creation date. There's a Publication Module for ...
1
vote
1answer
83 views

Set value for start/end date field labels in hook_form_alter

how can I replace the labels of start/end date for a date field via form_alter? the code below only works for the fieldset. The "to" needs to be removed. $form['field_my_dates']['und']['0']['#title'] ...
0
votes
0answers
30 views

Calendar - “It happened today” type

I have a database of persons with birth/death times (Year-Month-day) and biographical data, and I want to make a Calendar View that lists the birth/death events that happened on some specifical day. ...
0
votes
1answer
28 views

Act on date field value

I have a CT with a Date (Unix timestamp) field implemented. It represents the start date of an event. One simply question: Is there a way to compare somehow, this value with the current date() and ...
0
votes
0answers
12 views

Non selected option text in date_select field impossible to set

I am trying to get the unselected option for a date_select field in a form, and if I use #default_value as empty string, it renders the text: " - Month -". If I don't use #default_value, it gives an ...
0
votes
0answers
16 views

How to personalize label of “grouping field”?

Having a blog, I was trying to create my own "Archive posts" view: a list of my posts' title, grouped by week. This is what I wanted: Week 30, 2014 - Title of nice post (12-10-2014) ...
0
votes
1answer
60 views

Drupal Date Popup - Disable Selects, Display names only

I am looking for a way to remove the select dropdowns from the datepicker popup and only display the names of the months (and the year). As for the appearance it can be altered in datepicker.1.7.css . ...
0
votes
3answers
22 views

How to hide completed event from view result based on it's end date?

I have created an Event Type pages which have date field Start Date-End Date, how do I hide completed event in view result or else is there any other way to unpublished them automatically?
0
votes
1answer
119 views

Views date exposed filter default value

I've got exposed date filter (with daily granularity) and I want to provide default value for it. I just want to show nodes that have today 'field_date' date by default. The field has both start and ...
0
votes
1answer
21 views

View of date field showing time on all day events

I have a Event content type with a body and date field from the Date module. I have a view that shows the events as a block in ascending order, and everything looks cool when I view as an admin. All ...
1
vote
1answer
109 views

Date module shows time field +5:30 ahead from input

I am using Date module with date popup . And I am creating these node pro grammatically and saving dates to them like: $node->field_task_time[LANGUAGE_NONE][0]['value'] = "2014-12-18 23:15:00"; ...
0
votes
1answer
19 views

Limiting Date (Hours) In Form

How can i limit Hours in Date field ? like it begins in 12 untill 21:00 . Any idea would be appreciate it ?
1
vote
1answer
39 views

How do I make block only visible if the 'field_date_value' is in the past?

What code do I use on a D7 website if I want a block only to be visible if the field_date_value of a date node is in the past? On a D6 site, I had this working for all date nodes: $match = FALSE; ...
0
votes
0answers
5 views

D6: View events that repeat mothly

I'm using Drupal 6 and the Date Repeat module to successfully show repeating events at various frequencies, from monthly to weekly. I'd like the option to show events that repeat monthly, or events ...
0
votes
1answer
31 views

How can i limit hours in date field?

I have a reservation form with entityForm and i want to limit hours in date field. like it begins 3:00 till 9:00 . i've searched a lot and use Date Restrictions module but i couldn't do this . Any ...
0
votes
1answer
71 views

How to create custom date display format in drupal 7?

I have created content type for an events in which I mentioned multiple values for date field. I want to display date like Nov. 2, 6 & 8 or Nov. 2-5, 12 2014 & Jan 22 2015 After some ...
0
votes
0answers
24 views

Adding a timezone2 for value2 of the Date field

I am using the Date module to handle start and ends in separate timezones. It appears I have already made the mistake of using the value2 property of the Date field to store the end time. By default ...
1
vote
2answers
66 views

Date format on user profile form shown incorrectly - how to change

I added a date to the user profile form under admin/config/people/accounts/fields. The field is of type 'date', the widget of type 'select list' and I only collect year, month and day. Without ...
0
votes
0answers
63 views

Automatically set date field end time to +2 hours

I am allowing users to pick a start date and time. From that start date and time, I would like to programatically set the end date and time to "start time + 2 hours". The issues that I'm running into ...
0
votes
0answers
17 views

Date Views - Total entries

Hi so I am using the calendar via Views and am currently outputting events for each of the days. But was wondering if there was a way of instead outputting the amount of events rather than the title. ...
0
votes
1answer
41 views

Date field Start and End limit

When we create a date field in node form, we can set START and END years to be shown in that date field. If we are creating a date field programatcaly, how do we do that? I have a date field, ...
0
votes
0answers
35 views

Display Event info only on start date in Calendar?

I have a Event Calendar and I am using calendar module for this. I have added a Date field with to date option enabled for event. When I am adding event to calendar it highlights all the dates of ...
0
votes
0answers
18 views

Views: filter by entity property value against current timestamp

I have created custom entity type with module eck. I have created integer property (not field) of this entity which I use as timestamp. But now, I don't know how to use this timestamp in views. I ...
0
votes
0answers
34 views

Drupal 7 doesn't show date field in block but it does in page

I have a content type with a datetime iso field and pop-up calendar widget. The field collects an end date too. In the view (page) and table format it shows correctly. In the block in unformatted ...