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

learn more… | top users | synonyms

1
vote
1answer
18 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
17 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
14 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
6 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
12 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
22 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
20 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?
-3
votes
0answers
19 views

Menu Disappeared [closed]

I was Installing some modules ( full calender, colors, date ) and suddenly my horizontal menu on the left top of the page disappeared and a lot of changes occurred to my created content.I have no clue ...
0
votes
1answer
29 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
10 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
69 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
17 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
29 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
4 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
20 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 ...
-1
votes
0answers
15 views

Drupal Date Field: How to QUICKLY input large number of dates into one multi-value field? [on hold]

I'm trying to find a way to quickly add a large number of dates to a single multi-value date field. I have my field set to unlimited, and it works great with my nodes and views. However, adding more ...
0
votes
1answer
52 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
17 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
33 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
33 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
13 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
24 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
24 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
11 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
28 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 ...
0
votes
1answer
22 views

Change the default timezone variable_get from views

What I want is to change the way drupal views get the site's timezone setting. I want to set it manually in code. Searching through the files I noticed that the function "views_get_timezone()" in ...
0
votes
0answers
82 views

Calculate the difference between two unix timestamp date fields

I need to calculate the difference between two date fields in a table view in Views so that each row in the table shows the time difference in days, hours and minutes . The date fields are set to the ...
0
votes
1answer
18 views

Duration between From and To Date in Views

I have a view, listing date START and END. I want to list DURATION in HOURS between START and END date. How can I do that?
0
votes
0answers
16 views

when Node Date Field is empty adding node returns 'The website encountered an unexpected error. Please try again later.' message

I have a field on a Node.content.type which is a date field. recently we've noticed if you enter a blank date here I get the error - 'The website encountered an unexpected error. Please try again ...
0
votes
1answer
23 views

Views3 date field (filter) treated as string

I am used to getting int operators(like less then) in views when using date api fields but now I'm getting string operators so I can't filter on dates(like now). When creating a filter on 'post date' ...
0
votes
2answers
33 views

time mismatch after convert with format_date

In my custom module, I converted time from database like ('17:00:00') with format_date(). After I converted this I got a wrong time (17:10). Please check my code, I am also naive drupal develper. ...
0
votes
0answers
12 views

Issue with sending date values to OR date facet

My apologies for cross-posting but I haven't gotten yet an answer from a relevant Drupal support request So in short I 'm having a date facet with drill-down level set to "years". The search backend ...
0
votes
2answers
31 views

Multiple content types from Views module, not old nodes from one of them

I use the famous Views module to show nodes of different content types. One of these content types has a field called "final date". If a node has an old date, smaller than today's date, I want it to ...
0
votes
0answers
20 views

How do I remove DEC 31 from a date field?

I have an event page on a member's portal. I have added a new Date field to the Event Content type and I am leaving the old date field in to show previous events as they are in that table. I'd like to ...
0
votes
0answers
18 views

Incomplete Date using Date Module?

I've created View/List that contains First Name, Last Name and Birth Dates. It's sorted by Last Name and then by Birth Date. Sometimes I only know the Year and not Month and Day but Date Module forces ...
1
vote
1answer
42 views

Disable past dates in date_combo

Is there a way to disable the past dates in the date pop-up while using the date combo form api? Specifically, I have a date type field in a content type, on which I want to do this. Help ...
0
votes
0answers
44 views

Views Date filtering not working

I have created a view from an entityform that I've set up in D7/views 3.8. There is a request date field in my entityform. The field type is date. i have set the format to be m/d/Y. I added a date ...
1
vote
1answer
27 views

Date field in view Filter Criteria, where date may be blank

I have a date field attached to a content type and it's not a required field. I want to use this date to control the display of the content using a view and it's filter criteria. Some content may ...
0
votes
1answer
118 views

Display event on click of Date with drupal fullcalendar module

i have made a event calendar with fullcalendar module. Now what i need is that when a user clicks on the date box for example 9-sept he should be send to a custom url with the full date in the ...
1
vote
1answer
87 views

Rule to check if a date value is a specific day of the week

I want to set a rule which checks a date of format "2014-09-24 08:43:39" is a Monday using the data comparison rule. I have tried to manipulate the data selector for the date using the ":custom:N" ...
0
votes
2answers
32 views

Views filter referenced content when end date is over

This view is the result of a given postcode. how could I hide/filter referenced content when its end date is over? The referenced content should disappear but the non referenced content should still ...
1
vote
1answer
93 views

Problem to update a date_select field from a tableselect radio button via ajax callback. Other fields are well updated

Here is the corresponding code and a print screen of what happens when clicking a radio button (you can see it works well for type 'select' and 'textarea') I use Drupal core 7.31 and Date Date 7.x-2.8 ...
0
votes
1answer
43 views

How to remove/hide 'to time' in time field

I need to show only one time, no need of start and end time. Or I need to show only start time. Please anyone help me on this.
1
vote
3answers
158 views

How to set a value for date field

I need to set value for a date field with type datetime in hook_form_alter. I tried with below codes. But it is not worked. $form["field_event_date"]["und"][0]['#default_value']['value'] = ...
0
votes
1answer
39 views

Im using entityforms to make events on a Calendar. How can i prevent duplicated dates?

I am developing a Booking System and I am having a issue i.e. How can I prevent duplicate events to be registered ? Right now I am using: Calendar and Date for the event management and Entity Form ...
0
votes
1answer
44 views

Drupal 7 add calendar module. Doubleclick on a day to add calender item for that day [closed]

Adding 50+ calender items to my drupal Calendar is a pain and takes a lot of time clicking and selecting the right date. What would be awesome is that it would be possible to just doubleclick or click ...
1
vote
1answer
56 views

Is it possible to implement date field as one select list?

Currently when we use default date field with widget select list, it shows like 3 drop-downs with Year, month and date. Is there any way to make it as one drop down. I need to display few dates from ...
0
votes
1answer
49 views

Show datetime value in views with entity api

I made a custom entity with a date field stored as datetime in mysql. I see the proper output in my content, and all other field values in my views except the datetme value. Only the label is shown. ...
2
votes
1answer
67 views

How can I create a programmatic Search API query which uses a date field

I'm trying to create a programmatic Search API query. I've successfully created one which looks for all nodes which are published: $index = search_api_index_load("node_index"); $myQuery=new ...
0
votes
0answers
25 views

Showing “viewed” and date/time in Private Message with Nodejs integration

I'm experimenting with a new D7 site taking advantage of private message with nodejs in order to build a chat. After some struggle everything works like a charm but it would be very nice if the chat ...