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

learn more… | top users | synonyms

0
votes
0answers
21 views

Removing the unwanted character from date field

I am generating the auto label by using the tokens for some field like date of birth and the gender of a person in auto label tab. but after saving the node the date of birth is generating in ...
-3
votes
0answers
29 views

Calendar Tabs with Ajax [on hold]

I activate Ajax for a Calendar view, but it works only for next and previous button. Is it possible to have Ajax for the tabs Month Week and Day? Thanks
0
votes
1answer
7 views

Instance based date field granularity

In my web application (Drupal 7) I'm using a date field with year-month-day granularity, but I would like, for a specific content type, to add also hours and minutes. Is this possible to achieve? ...
1
vote
0answers
25 views

Date field defaults are not shown as values

I have added the date field in the user profile where in i have made the setting as bellow the default value is NOW [it should show the current date], and also the end date default value selected as ...
0
votes
2answers
27 views

How to print date in image in Event List in Drupal

How can I print a date like JAN 28 in the provided Event list, using Drupal Views? The example image taken from the Drupal website is attached below
3
votes
2answers
46 views

Changing label of views exposed date filter select list

Trying to change the label of a views exposed date filter based on Year granularity which is a select list. I have given date range to the filter thus it does not generate the "#options" array. It ...
1
vote
1answer
15 views

How to send an eMail for different fields (dates)?

In Add user page i have added extra fields like **1]date of orientation,2]out of date,3]anniversary date fields,**and i want to remind the users by sending a mail on all the above mentioned date, but ...
0
votes
0answers
20 views

VIews Exposed Filter - custom query on date field

I have a content type with a date field. I further have a view with an exposed filter for this date field. In the view I don't want to filter for a specific date range but for any or no value set. ...
0
votes
1answer
31 views

How to add placeholder to exposed date filter form field

This is the structure of date field in my exposed form <input id="edit-date-filter-value-datepicker-popup-0" class="form-text hasDatepicker date-popup-init" type="text" maxlength="200" size="20" ...
2
votes
2answers
52 views

Module to remind special dates [on hold]

Is there any contributed module to remind special dates per user profile? I mean remember birthdays, marry dates, graduations. The idea is to display in the home page a block with all those reminders ...
0
votes
0answers
16 views

Drupal exposed search form not working properly

I have a view and i altered with custom query. It works as expected but fails while searching when both start and end date are same. No result message is showing. `if ( isset( $_GET['date_filter'] ) ...
0
votes
0answers
10 views

update request via services error with datetime field

I have a strange issue happens when update user profile: The form have datetime field and updated successfully, but when the client tries to update other fields it gives two warnings Warning: ...
0
votes
2answers
17 views

format_date not working as expected

I'm using Drupal 7.38 and I'm trying to print the creation date of a node in 3 separate divs, to be able to format it appart, so I created the following on the node.tpl.php: <div ...
1
vote
1answer
20 views

How to calculate field values in Views Calc?

In Drupal 7, I have a custom content type containing distance (a decimal field) and time (a date field where only hours, minutes and seconds are entered). In a view on that custom content type, I ...
0
votes
1answer
13 views

Why is my MONTH view still showing a DAY as the title?

UPDATE: I see the issue was not fixed in the current release so am especially interested in any suggestions for workarounds. For example, maybe I could hide the default header with CSS and add the ...
0
votes
0answers
22 views

Date formatter fields in views while migrating mysql to PostgreSQL

I am using drupal 7 and recently migrate my website database from MySQL to PostgreSQL. But in Views ,when i set the date field formatter other than plain, the output display showing current date ...
0
votes
1answer
66 views

How to find “next day date” (xx/xx/xx 00:00:00) from a given date & time value in Rules?

I'm trying to figure out how to find the next day date (xx/xx/xx 00:00:00) from the given date&time value in rules without the use of PHP filter module. Played with offset already - couldn't get ...
0
votes
0answers
25 views

End Date always after Start Date?

Related to, but not the same as Change end date automatically after changing start date I'm looking for a method to have Date fields do some sort of validation on the end date. I don't want it to get ...
0
votes
0answers
11 views

Editing and saving content, forces admin page redirect

The issue is when I try to save an edited piece of content in the overlay (an event), the system will redirect to the admin edit page. Then when I try to save from the admin edit page, the page goes ...
0
votes
2answers
114 views

How can I set a reminder to a specific user to be triggered on a specific date?

How can I set a reminder to a specific user to be triggered on a specific date (in a Drupal 7 site)? Example: I want to remind the user regarding particular event such as hepB vaccination day. Any ...
0
votes
1answer
41 views

TimePicker Rendered by an Ajax Callback Function Doesnt Show Up

I have a select form element that fires an ajax callback function everytime its value changes. $form['template_options'] = array( '#type' => 'select', '#options' => array( 1 ...
0
votes
0answers
20 views

Date - inline start and end date

On node creation date field is huge when there is end date (required), so i would like to have it inline like on this image:
0
votes
1answer
9 views

How to add custom month in Date field?

In my academic website, I need to add graduation year as a date field but for month field, I want to add only two month (May and December). Can I do this? My professor want like this and i don't ...
0
votes
1answer
36 views

Display date picker not inline in Drupal 7 Forms API

I have installed Date Picker Module and it works fine. Below is the code: $form['date'] = array( '#title' => t('Select your birthdate'), '#type' => 'datepicker', '#date_format' ...
0
votes
1answer
21 views

Date selection with price - without commerce

I need a option to let users set up dates and price when creating node with unlimited number of entries. For example: "from: 15/01/2015 to 20/02/2015 - Price = 50 USD" from: 21/02/2015 to ...
0
votes
3answers
34 views

How to display 01, 02… instead of Jan, Feb… on Select List with Date

I use Drupal7. I have a profile2's field, named "Birthday". I set the FIELD TYPE as Date. And, I set Custom input format as "Y-m-d" under "More settings and values" on field edit page. This is ...
1
vote
1answer
92 views

When should I use collect an end date for a field, instead of using 2 separated date fields?

I need to make a content type with a Start Date and an End Date. I know that I can handle this in two ways: Have two separate field Have one field with a option of "collect an end date". I wonder ...
0
votes
0answers
17 views

Programmatically set a multi value date field

$checked = array(); foreach($form['field_rundays'][LANGUAGE_NONE]['#default_value'] as $key => $val) { $checked[$key] = $val; } r($i=0;$i<count($checked);$i++){ $date = ...
0
votes
0answers
11 views

Referencing a field from Event in Computed Fields

Background: I am creating a task list for hosting events. The list is the same for each event only the date of the event will change. The due date of each task is based on the event date minus the ...
3
votes
1answer
115 views

How to create a chart about the number of node views per day (since last week)?

I want to show my users a chart that lists the node views hit for that day (Content statistics: Views today), something like this: So the user can see how many views each node of his had in each ...
0
votes
3answers
28 views

Showing Created time in node teaser

I'm using omega for theming and I want to show created date time in teaser Article . I found this <?php print format_date($node->changed, 'article') ?> But i don't know where to put it ! ...
0
votes
1answer
41 views

Display different time from one field value

I have field to display event start date and time. This field uses date module's widget. I need display time of event start for different time zones. For example: Eventname - starttime for Tallin: ...
1
vote
1answer
25 views

How can I exclude content older than… with Views

I'm trying to get my head around a Views setting, I can't find how to exclude older than two years old content from Views. I know it has to be somewhere in the Filter section. I would expect this to ...
0
votes
3answers
18 views

Compute 3 New Date Fields

What is the best way to output 3 new dates relative to the first date? For instance, I have a date field called "medication_start" = 1/1/2010. I would like three new dates generated in 3 new fields in ...
0
votes
0answers
9 views

How to make a N days due to the end date field exposed filter in a view?

I need to expose a textbox to users, they can input a number, than the view filters out the nodes whose end date will be due after the input N days. I tried with date views module, no luck.
1
vote
1answer
22 views

How to save multi date and time in node programmatically?

I want to save multi Date value in a node programmatically. $node->field_event_date['und'][0]['value'] =?; $node->field_event_date['und'][0]['value2'] =?; getting the below value after print ...
1
vote
1answer
28 views

Date field displayed with wrong timezone with PHP's date_create + date_format

I have an Event content type with a Date field with a start and end date. When this field is being displayed in a view, it displays properly, with the time matching the value that was entered. ...
0
votes
1answer
31 views

I need to print the timestamp of date in drupal views fields?

I am using Views Data Export module to show feeds as xml. I need to show the created date and updated date in timestamp . How can I implement it?
0
votes
0answers
20 views

Drupal 7 Form API Date input as multiple text fields

Using the form API how can I create a date input with multiple text fields like this? The Date module offers a few input types but they are limited to a single text box (rather than three), select ...
0
votes
1answer
30 views

How do I sort a date field in views without the time?

Drupal 7 I have a view that sorts on three fields so the ORDER BY statement looks like: ORDER BY node_status ASC, field_data_field_date_field_date_value DESC, ...
0
votes
0answers
24 views

Date format - @ symbol has unexpected behaviour

I created a date format , then added that date format to a field within a view. But the @ symbol is automatically appending to the end of the date format (even though i specified it to go into the ...
0
votes
1answer
16 views

The 'to' date field not updating

Out of the box the date field can accept a 'from' and 'to' date parameters and the 'to' date field will auto update when the 'from' field changes. As work has progressed on my site the field no longer ...
2
votes
1answer
21 views

Add new date type?

How can I add a new date type? Under "Date type" I have "Long", "Medium" and "Short". How can I add a new option to this list?
1
vote
2answers
32 views

prevent user from putting 0000 in date field

How can I force date validation upon input of a content type so that a user cannot type in 0000 as the year which causes an error in Drupal 7.
0
votes
0answers
13 views

Change field settings after there is data in it

I am having an issue updating my event content type, I would like to turn on repeat date but, as there is a lot of data in it, so it doesn't allow me to do that and the option is GRAYED out. How can I ...
0
votes
0answers
37 views

add function on date selected through date popup field

I am using Date popup module for selecting a date in a registration form. Is it possible to fire an event on date select?
1
vote
0answers
14 views

Creating a semi-static default date field (fixed month and day, year=NOW)

I have a date field that needs an unusual default date: fixed day and month, but year=thisyear. That's outside the standard default date options. I didn't want to write a custom module for one ...
2
votes
2answers
97 views

Can't get “time ago” date format to work

From this blog post http://drupalmotion.com/article/time-ago-date-format-drupal Function: /** * Format date implementing hook_preprocess_node(). */ function YOURTHEME_preprocess_node(&$vars) { ...
0
votes
1answer
18 views

Drupal 6 CCK date field is saving current time when the time field is left blank

I have a node type='event' that has a "text field with date popup calendar". The date format is "05/13/2015 - 7:02pm". On the edit page, the form renders as two fields: a calendar popup text field ...
0
votes
1answer
24 views

Date Range, like google analytics

while I wanted to create a chart system for my website, for the apparel trend forecasting company, I wanted to add trends of sales based on today, yesterday, this week, this month, and year trend. I ...