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

learn more… | top users | synonyms

0
votes
0answers
16 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
10 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
30 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
11 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
13 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 ...
1
vote
2answers
37 views

Call $created variable in content type node template

How can I call the $created variable in my content type node template? I tried the following but it just produces what seems to be a random string of numbers: <?php print render($created); ...
0
votes
2answers
16 views

Change content color based on Date Range

I am building a website using Drupal 7, Views, Rules, Ctools, Panels, etc. I need to change the content color based on the date. The idea is that each quarter's reports have a different color to make ...
0
votes
1answer
15 views

Calendar as view's pager (passing arguments between views?)

I have a view paged by week. Users are a bit disappointed by the pager: they find clumsy to navigate to weeks that are far in time (more than 1 month from today's date). The idea is to keep the ...
1
vote
0answers
22 views

How to set due date based on number of dates out from event

I am building a website for planning events. Each event is in its own space to separate groups. These events are planned almost identically. For example Invitations need to be sent out 42 days before ...
0
votes
2answers
39 views

How to get date values from field collection to a node?

I am trying to print the values from a field collection using following code in Drupal 7 node.But the date values are not getting. $wrapper = entity_metadata_wrapper('node', $node); $formtype = ...
0
votes
1answer
37 views

Date field with granularity of Month, Year in Exposed filter, how to alter the default value?

I have a Date field with granularity of Month, Year in Exposed filter. Everything is working fine, but the month and year default values are shown as "-Month" and "-Year". Let me know how to alter ...
1
vote
0answers
6 views

view dataexport xml file

I am trying to export a date field as mm/dd/yyyy. I keep getting the time 0:00:00 added on the end. Can someone tell me how to format the output from within the view. Formatter: choices are Date and ...
1
vote
0answers
24 views

Add the autocomplete functionality in date field [closed]

I want to add autocomplete functionality in date field. I tried using form alter but it doesn't catch & by using hook_date_text_process_alter, it works in date field but not for first time. It ...
2
votes
0answers
36 views

Change views Contextual Filter based on select list value

Using Event Calendar Module I displayed dates in a calendar views. Now I have to create a select list with options like IST CST EST PST Changing the values should change the Date displayed ...
0
votes
2answers
22 views

format_date() not working

I've got a field in a content type called "field_program_date" of type "Date". I'm using Drupal's format_date() function to format the date in the content template like this: $program_date = ...
0
votes
0answers
21 views

Datepicker disappeared from Drupal Rooms module

I have been struggling with this for a couple of days now. I installed Drupal Rooms module (D7), everything worked just fine, but after fiddling around on the site, the datepicker functionality ...
0
votes
0answers
33 views

jQuery datepicker position?

I can't seem to figure out why the jquery.ui datepicker position is off for my date fields. I've attached an image for reference. I understand the position is set dynamically but I don't know how to ...
0
votes
2answers
32 views

Change the title of date_popup filed in custom form

I'm building a custom form in Drupal 7 and i need to use the date_popup widget in it. It all works as expected, except the title of the field. My code is: $form['filter']['start_date'] = array( ...
0
votes
1answer
12 views

Returning all items in Views for Dates with Start dates AFTER Now as well as no date set

I have some items that have dates and some that do not. For items that have dates I do NOT want to show items that are past due (ie. events that are before today's date (or 'now' is fine). However I ...
0
votes
1answer
40 views

How to get the name of the month in local language in Drupal?

I want to display in a tpl.php file: 30 maart 2015, 11: 34 Currently i'm using below code <?php print date("j-F-Y H:i") ?> 1) How to get the name of the month in dutch instead of ...
0
votes
1answer
13 views

Setting a date to be empty by default

I have an event dates field that allows the user entering content to put in a start and and end date. By default it just shows them the start date. If they check a box it shows an end date and they ...
0
votes
3answers
21 views

Change date format

I am wondering how to format dates so that: When the start and end date are in the same month, that the start and end date is displayed like 1 - 2 March 2015 When the start and end date are in ...
0
votes
0answers
21 views

Create a related content block by date and taxonomy?

I have two content types, A and B. Both of the content types are tagged with terms from Taxonomy list C. Content A and B both have a date field (start and end date). When looking at Content A I want ...
0
votes
6answers
170 views

It is possible to have placeholder text on a view filter with type date_text?

I've got an exposed filter on my view that allows users to specify a date, and I want to specify a placeholder for this text field. I've tried doing this using the following code in a hook: ...
0
votes
0answers
17 views

Exposed grouped filters - inputs on a date field don't render

I am having the same issue as listed here:https://www.drupal.org/node/2128683 I am using: Latest version of Drupal core Views 7.x-3.10 jQuery 1.7 Use AJAX is enabled on the view If I do not ...
0
votes
0answers
14 views

Date Field is not working suddenly

I had created a field of type Date-ISO Format for a content type. I am creating the content programmatically. Everything was working fine when I was sending a unix timestamp and probably drupal was ...
0
votes
1answer
49 views

Custom form with Date textfield with jQuery popup

I'm making a custom form and I would like to render a field that is just like the form that gets rendered for a Date with a jQuery Popup when editing a node. I can't figure out how to build the ...
0
votes
0answers
24 views

HTML date type input?

How can I make a HTML date type input? I need something like this: <input type="date" name="bday"> This is different to the date module that creates a text input and uses jQuery for the ...
0
votes
1answer
28 views

Add class for a date field

I have a content type "Task" with a Date field to define a deadline for tasks. What I'm trying to do is to add an extra css class to the field wrapper to indicate that today is the deadline. I can do ...
1
vote
3answers
47 views

How do I hide the end date part of a Date field but not the time?

I have a content type that uses Date, it has a start date with time, and end date and can even repeat. But I need to hide the part of date that handles the end date and leave just the time, most ...
0
votes
1answer
50 views

Drupal Views Date Views - Today in History (month, day)

I am using Drupal 7, Views, Date Views, and Date module. My database uses a field named "release date" which contains the date that specific items were released (Month/Day/Year) I would like to ...
0
votes
1answer
54 views

Moving Elements around in Date Field

Trying to make the Date Module a little more user friendly. I found out how to remove the Fieldset wrapper, and put the start and end dates in line, but due to where the check box resides, the field ...
0
votes
0answers
26 views

Using node clone to copy content and delete parent content?

I want to use node clone to copy my old content and at the same time delete the parent content for example i have a content called Item 1 I want to clone Item 1 want and then delete the original ...
0
votes
0answers
54 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
44 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
35 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
166 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
29 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
11 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
32 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
29 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
141 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
27 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
11 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
38 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
45 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 ...