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

learn more… | top users | synonyms

0
votes
1answer
21 views

how to show the date the node was created?

i have used the format_date() in my template files to try and output the date created. i followed this tutorial http://webwash.net/tutorials/handling-date-and-time-drupal-7 i created a date format ...
1
vote
2answers
25 views

How to assign a dynamically updating date to a user based on a related field on their profile

I have a site where Users who can expect a delivery to their address every week depending on their delivery route. I also have a Content Type of "Delivery Route" and a Content Type of "Delivery" with ...
0
votes
1answer
17 views

Calendar add date programmatically

I am having a bit of trouble figuring out a thing with Drupal Calendar. I have created a custom content type , with a date field. I display the dates as events in a Calendar style view. I want to ...
0
votes
0answers
15 views

Drupal generic data checkboxes

I have a content type 'course'. With fields like name, description and so on. Then I have course_subcription. Which references to course. Now for the subscriptions I want the following: for two ...
0
votes
1answer
25 views

Views to display events with single date events and events with date range

I have a views view that displays a list of events. These events have a start-date and an end-date. I have two exposed filters, one for the start-date and one for the end-date, so that users can ...
2
votes
1answer
31 views

Related node views - some elements with date field, some without. How to include elements with no date in results?

I have a views block that displays related nodes based on tags. (See Entity Reference get nodes based on tags.) The comment links to the solution I found. Now, I have to add another filter to the ...
0
votes
2answers
21 views

Rules offset with a fixed time

I'm trying to set data value for a date field. The value is 7 days after a node was created. This works fine but I would like to have a fixed time of 6pm as the time value. Currently the time is set ...
2
votes
2answers
51 views

Storing a date created with Form API

Very simply, I'm creating a date of birth field pragmatically like so: $form['dob'] = array( '#type' => 'date', '#required' => TRUE, '#title' => t('Date of Birth'), ...
0
votes
0answers
21 views

Recurring events - retrieving/displaying the dates for the current “instance” of the event

I have an events page on my (D7) site, and the admin can set up recurring events. When creating a list of the events, I see the recurring events come through in the right place intermingled with the ...
0
votes
1answer
25 views

Why using of custom date format makes my Drupal date outdated and does not change at all?

I have custom installation profile and I must set date formats programmatically. I tried: db_insert('date_formats') ->fields(array( 'format' => $format_long, // PHP Date String ...
2
votes
1answer
21 views

How do I format a date value for a 3-column date drop-down widget?

I would like to pass a date in the format 2013-04-23 00:00:00 as a #default_value into a form builder function: $form['date'] = array( '#title' => t('Date'), '#type' => 'date', ...
0
votes
0answers
12 views

rewrite the url output of the date module date filter criteria

I have an optional filter criteria of type date created, that uses the date module. I need to clean up the url format from: http://www.example.com/gigs?month[value][date]=2013-04 to something ...
0
votes
1answer
32 views

Date import using csv

On my D7 site, I am trying to import few nodes using feeds csv file. I am able to import some of the fields but I am unable to import CCK date field content. I have tried using feeds module with ...
0
votes
0answers
21 views

Display default value in date_popup [duplicate]

I can't display the default value of the $date_debut in form. Dpm shows me that the right values are there and I can display $date_debut in #title but not on #default_value. any idea why ? ...
2
votes
1answer
93 views

How to implement a mysql date or datetime field correctly in hook_schema()?

I have written a mymodule.install file which contains a schema definition to create a table in my database. This table contains two data fields. Theese fields will be populated by the users when they ...
0
votes
1answer
27 views

How to add custom functionality on per-date base to nodes that use date fields for an event ticket system?

For an event ticket system I have created a node type with multiple date fields including start- and end-dates. -EVENT1- Date A Date B - Date F Date G - Event2 - Date B Date C Date E - Date G Now ...
0
votes
0answers
10 views

Date Fields get weird with DST

I have a content type with a date field. I set up the Date field to use the page default time zone. In my case Europe/Vienna +1:00. But since the daylight saving time is on, everything got weird: ...
0
votes
0answers
42 views

date_popup gives Fatal error [closed]

I am developing a custom module wich has a form. I need to create date_popup field in that form. so I installed the date module in "sites/all/modules/drp" and my own module is in ...
0
votes
0answers
30 views

Date Field in Add Content for custom content type displayed as textfield

I'm working on a module and I'd like to display an add content form for a custom type (Event) that contains a date. Here's what I do: <?php $new_event_node = new stdClass(); ...
0
votes
2answers
29 views

Is there a module for showing only posts in some defined date?

I would like to make a calendar addon for my website, which would look something similiar to http://www.nikerigarun.lv/ this (scroll it a bit downwards, on the right side). The funcionality would be ...
0
votes
1answer
13 views

Date Calender Starting Date of Field B should be equals to or advanced from the Ending Date of Field A

I have created a form using webfrom module. The form contains Arrival Date and Leaving Date. I want Leaving date should either be same as Arrival date or higher than that.
0
votes
1answer
29 views

Using a Drop Down and available Dates in a Content Type

I am running an event that spans a week. During the event different vendors are able to have shows that run a few hours each. What I would like to do is create a form for the vendors to fill out ...
-1
votes
4answers
185 views

“The value in Date is not a valid date” error

I am editing an existing node of content type event, and am trying to update the Date using the date pop up. However, no matter what date I select I get the The value in "Date is not a valid ...
1
vote
0answers
36 views

Drupal populate date field using ajax

Need help to populate Drupal form API DATE Field in ajax call back , i tried most of the things but nothing works , normal textfields and all populating but date field alone not working
3
votes
0answers
47 views

Paging a view based on a grouping field?

I'm upgrading a site I created 2 years ago from D6 to D7. In that site, I have a view of items that are grouped according to year, so that the items for each year show up on a separate page -- you ...
4
votes
1answer
86 views

How setup year increment?

I use Date module in D7. And I create new field "decade" (field type is Date). Also in settings I add custom input format 'Y' (only years). There is increment for time (+/-30 minutes), but I need ...
1
vote
1answer
145 views

Using Date Popup widget with custom format Date field

I need to save a date in a very specific format: (2013-03-09\T17:01:34.1\Z to be precise). I also need to allow users to edit this date after it's been saved. I want to use the Date Popup ...
3
votes
1answer
56 views

Create a pager with “Yesterday”, “Monday”, “Sunday” etc

I have a view which through contextual filters show content created on the current day, and I would like to add a pager to allow users to go back in time one day at a time. Say we visit the site on a ...
0
votes
1answer
54 views

How to generate a List of Dates with Start/End sorted by Month in Drupal7?

I have installed Drupal7 and created a content type (why not call it 'event' for now) to which I added a date field (lets name it 'event-date'). Some event-dates have start- and end-dates. Now I want ...
0
votes
1answer
68 views

D7 Alter date field output in views

I have a view which shows a couple of fields in a list. One of the fields is a date field. I'm trying to alter the output of this field so that I can control the day, month and year seperately. So ...
0
votes
1answer
78 views

How to ajax changing date field on _node_form?

On content type called Order have 2 fields - "Category name" (term reference) and "Date" (Date (Unix timestamp)). On node edit form I want to change date to other value (for test purpose it is "hard ...
0
votes
0answers
78 views

Multi Node Add - Set default value to date field depeding from first date field

I'm using Multi Node Add -module in my site. And I have content type called Event. In that content type I have date field which is for scheduling node publish. I've made Rule which uses that date ...
0
votes
1answer
149 views

Show repeating event just once in Views while sorting by date

When using repeat date API on a field, Drupal allows you to group events so they don't appear multiple times. However, when sorting by date it seems like Drupal ALWAYS shows all of the entries no ...
2
votes
0answers
115 views

Multiple Date Argument Values with One Contextual Filter

I have a pretty simple view in D7: Fields nid title Contextual Filters nid date (from date, monthly granularity) Now I'd like to fetch some results for a specific node, but across multiple ...
0
votes
1answer
212 views

Using Views and Date module in Drupal 7 - Limiting Filter Options

I am creating an event calendar for a festival where user's can log into the site, click "Add new event" and create an event. I have 2 questions regarding dates. When the user creates the event, ...
2
votes
0answers
32 views

Count of Users Grouped by Date with Exposed Filter

I want to create a view that shows the count of users grouped by date. That works fine by just adding aggregation and using the "count" function. As soon as I add an exposed filter to narrow down the ...
0
votes
1answer
135 views

Views date field does not follow custom date format

I have a custom date format defined (via code), and this is what I see in the administration pages: Custom Date Formats (png screenshot) In views, I've attached a field, and trying to use a ...
2
votes
2answers
110 views

How to retrieve datetime from database in Drupal?

How do I retrieve a DateTime column from my MySQL database using Drupal Database API + PHP. The DateTime format is in YYYY-MM-DD HH:MM:SS(2013-02-20 23:59:59). I want to retrieve all the rows in the ...
1
vote
1answer
23 views

List of all bookings in the next 3 days

In a content type i have a field date which has a start date and end date. using views i want to put filter in such a way that it display results in a date range form now to next 3 days. In a fields i ...
0
votes
1answer
47 views

how to differ start date and end date in a table views

in D7 i have a date field with start date and end date and configured like start=now and end date=+30days. both dates are displayed well in two columns in a table views seperately. now i want a third ...
2
votes
1answer
75 views

Rearrange Date input field rendering

In a function that is a response to a drupal_get_form() I am constructing a form that includes a date field $form['dob'] = array( '#type' => 'date', '#date_format' => 'm-d-Y', ...
3
votes
1answer
158 views

How to format Start + End Dates without using PHP

I have a content type with a start date, and an option for an end date. When this field is displayed in a view, I would like to see 1 May 2012 2-3 May 2012 (etc...) At the moment, I can only ...
0
votes
0answers
26 views

Modify Date field with a mandatory end date while perserving the existing database

I have an existing Date (ISO format) field. I now need to make the 'end date' mandatory while preserving the content that already lives in the database for this field. Simply ticking the mandatory ...
0
votes
0answers
98 views

Drupal Views Expose Filter Date Time Field Popup

I need to expose filter for date time field using popup calendar. But i could not choose 'popup' on form element options. Every time i choose popup, it automatically change it 'select'. And an error ...
1
vote
2answers
33 views

How do I create a view with filter on a field built using the date module?

I created a content type that includes a date field. I want to create a view that filters on this field, but it appears that the field is being seen as a text field because there are no operators for ...
0
votes
1answer
24 views

Stop User From Publishing an Event if the Start Date is Before a Certain Month Using Rules

I'm working on a development site that will not be launching for a few months. I'm looking to create a rule that will not allow a user to publish an event if the event's start date is prior to launch. ...
0
votes
1answer
161 views

Add birthday field on user account

I want to enable my users to add their birth days in their profile. The users should select the date either from a calendar or insert them in three different fields of day,month, and year ...
0
votes
1answer
90 views

Date question re date_popup

In the Date module I'm trying to customize #date_popup; is it possible to completely eliminate the Timepicker field; it currently displays Date + Time fields. I only want the Date field and can't ...
0
votes
2answers
54 views

Auto-add today's date and time to new Entity title upon creation?

I'd like to be able to auto-add today's date/time to the title of a particular Entity type when a new entity of that type is created. For instance, if I create an entity called "My New Entity", I'd ...
0
votes
0answers
33 views

Rendering a CCK Date field exaclty

I am having an interesting problem with some birthdate data in my profile nodes. I am using Drupal 6. There are two people: Ann has the following UNIX timestamp value stored in the db: 353026800 Her ...

1 2 3 4 5 6