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

learn more… | top users | synonyms

2
votes
0answers
11 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
5 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 ...
1
vote
0answers
11 views

How can I make Repeat Event and give status to every Event

I think most of us use Date module and calendar to handle the repeat event problem. But Is it possible to give all the repeat with status? For example, I create a repeat event about exercising every ...
0
votes
0answers
10 views

A kind of error when trying to bulk modify a date field using Views Bulk Operations (VBO) - Action Modify entity values

Using Drupal 7.31, Views 3.8, VBO 3.2 I created a view that display all nodes of a content type; I want to modify some fields values using VBO (Action to Modify entity values) and it's working OK ...
0
votes
1answer
20 views

D7 show all events that are active between two dates chosen from exposed date filter

I have a problem in showing views results with an exposed date filter in D7 views 3.x. problem We have several events with a date field. It is required to fill in a start and end date. We want a ...
0
votes
1answer
14 views

Change date formate in drupal admin tables (log, content listing, edit pages, etc)

I've looked everywhere but can't find out how to change the date format in the admin/content/ table and the recent log table. Current it is displayed as '09/05/2014 - 00:18'' but I just wanted to ...
0
votes
0answers
12 views

Required pagination in Drupal view's output when showing repeat date fields value

I have a content type in drupal 7 whose name is lesson. I created a date field with repeat option. Now I have created a lesson on 01 Sep 2014 as start date and end date and used repeat option to ...
0
votes
1answer
34 views

Calendar View of Events shows 1st of month in header

I would like my Calendar Page View of Events to show "August 2014" (or whatever the current month is) as the heading instead of showing "Friday, August 1, 2014" (see attached pic). Is there a ...
2
votes
2answers
54 views

Views sorting by date

I want an overview of articles sorted by their post date (some articles will be posted back in 2007). But then the possibility should be there to move an article back to the top of the list (we want ...
0
votes
0answers
17 views

Set default value for time field in custom form [duplicate]

I am trying to set a default value for time field only in a custom form using date module API. The code is as follows: $today = strtotime('00:00:00'); ...
3
votes
1answer
91 views

Form API: fomatting the date select lists?

I'd like to format my date select input, using the following time formats: 12-hour format of an hour without leading zeros Minutes with leading zeros Here's my form definition: ...
0
votes
0answers
14 views

Drupal Date Repeat Module has no delete option

I'm using a custom content type with the drupal date field inserted with the date-popup calendar. The content type allows for multiple dates however there is no delete option, so they just keep ...
0
votes
0answers
17 views

Allow timestamp published/updated dates for certains fields?

Is there a module to enable or disable the created and updated dates to certain fields? The goal is to have a timestamp of the date of creation/modification date of a field (of type text) has ...
0
votes
0answers
23 views

How to support fast year browsing in jquery UI Datepicker?

I am using jQuery UI Datepicker in an exposed filter of a view and I get the following Datepicker: How is it possible to configure the Datepicker, so that I can quickly navigate through the years, ...
0
votes
1answer
40 views

Hiding Field(s) if Date is Expired

I'm using Drupal 7 date field. Using views, when the date has expired, the page goes to a section labeled 'past events.' In the template page, the date and time are both separated for instance. ...
0
votes
0answers
14 views

exposed grouped filter for date not working

I'm working with views and the exposed filters and get stuck with a problem. Here's the thing. A single filter on date is working. But when I switch to grouped filter, the input box for date is ...
0
votes
0answers
18 views

How to change date format in Views Calendar Pager?

I have multiple displays rendered in a Calendar View (Mo/Day/Upcoming/etc.) and everything's working as it should... except I changed a setting somewhere and applied it to all pages instead of current ...
0
votes
0answers
25 views

Hiding Time Field if Date is Expired

My time field shows after an expired date. My client wants to have the time hidden after the expired date. But still have the date show. Is this possible?
0
votes
0answers
19 views

Split a date field output into two spans

I have a Date field on a content type. I'm trying to render it so that just the Month and Day are visible, but I need each in a separate . I think the most appropriate place to do this is in the ...
0
votes
1answer
37 views

Cannot change date input format in views exposed filter

I am unable to change the date format for an exposed field in views. I am using BEF datepicker popup. I overrode the jquery settings to get it to enter a UK date in the dd-mm-yy format but because ...
0
votes
1answer
16 views

View filtered by a Date field's value being in “last month” shows July content on July 31

A View is filtered by a Date field's value. The Date field's month must be last month in order to match the filter. On every day except July 31 it would return results from last month. It should ...
1
vote
1answer
20 views

Webform - how do I change dateformat in mail

Module: Webform The short date type is dd/mm/yy, so it appears correctly in the form (day/month/year) But in the mail it is shown with month first. (month/day/year) How can I change the date type in ...
0
votes
1answer
39 views

Alter display of jQuery Calendar Popup

I've got a Date field on my content type and I'm using the jQuery pop-up calendar as the widget. The html rendered for it has extra stuff that I'd like to strip away, but I can't find a way to ...
0
votes
0answers
20 views

Monthly calendar is now entitled “Friday, August 1, 2014”

My monthly calendar is now entitled "Friday, August 1, 2014" for all views and blocks that use the monthly calendar. All other views like day, week, year are all fine I believe. I just now noticed ...
0
votes
2answers
22 views

Unable to set date field programmatically

Somehow my custom fields ('datum' and 'high') are not set in the following script. Could someone tell me what I am doing wrong? function erstelle_kursenodes() { $content = ...
0
votes
0answers
11 views

How do I set a Calendar event date to repeat infinitely?

i'm having some difficulty in setting a repeating date in the Calendar module. these meeting events should repeat infinitely instead of using a 'repeat rule'. when setting up this field i think i saw ...
0
votes
1answer
18 views

Extra handler breaks Datepicker field

Problem I have a form which a user can create data with and some of the fields are date fields which use jQuery datepicker. The form is long and in order to help the user out, I have a series of ...
0
votes
1answer
25 views

View filter on date “Less than or equal” AND NULL(empty)

I just made a view with some filters (date), I wonder how can I choose the operator to mix the options "Less than or equal" and NULL, in just one request? I can't do that with "Grouped filters", ...
0
votes
1answer
27 views

How to display only “after now” dates (of multiple) of a date-field in a node?

I have an 'event' node-type with just a body and a date-field. For that date-field, multiple dates are allowed. I'm listing event-nodes in a view and already use filters to only display nodes when ...
0
votes
2answers
36 views

Calendar Pop Up - Extend year range

A little bit of introduction: I have a specific content type with the name "Database" where i can add content and with the views module and Search API, the user is able to search on my site for that ...
0
votes
1answer
19 views

Clearing a Date Field value in the Edit Node form

I have a content type with a date field (field_acquisition_date) and I'm using the Popup Calendar widget in the form UI. If a user... puts a value into that field and save the node then edits the ...
0
votes
1answer
25 views

How can I override an entity form with the same date?

I have an entity form that requires choosing from a date field. I wanted to override a submitted entity form if there is an existing submitted form with the same date. I was looking for a solution in ...
1
vote
2answers
28 views

Changing label on node edit form

I want to change a label/string on a node edit form for a date field. The label is, "Show end date" - I want to change this to, "Show end date (optional)", but I can't find where this is set ...
1
vote
0answers
37 views

How to use hook_views_query_alter to catch last DELTA of a multivalue date field?

I need a View that should list only past events. Events have multivalue date fields, so an event can have multiple "start" and "end" dates. Date's API assign a DELTA value to every group of "start" ...
-1
votes
1answer
62 views

How to import Joomla user created date to Drupal?

This new site is migrated from Joomla to Drupal. Most users were created 44 years ago and they should not be. I found out the created date format is different between Joomla and Drupal. So, how can I ...
0
votes
0answers
21 views

How to translate header in calendar module?

How I can translate header in calendar module that show month , year , prev and next and make it dynamic to translate to more than one language in drupal site https://www.drupal.org/project/calendar ...
0
votes
1answer
47 views

How to use date_make_date() in drupal 7?

I am porting custom module from drupal 6 to drupal 7 I have the following code: $local_date = new DateTime($dateTxt); $iso_date_string = date_format_date($local_date, 'custom', 'Y-m-d\TH:i:s'); ...
1
vote
0answers
30 views

Wrong timezone in Views output

I'm using Services Views to create a JSON output of my Drupal site's nodes. These nodes has a start and stop date and time regarding an event. On the site, viewing the node, the time is correct, but ...
0
votes
2answers
60 views

Views - sorting multiple date fields

I have two content types Tweet and Instagram. Both content types includes a Date field. The information in the Date fields is imported by a json parser module. I am displaying both content types in a ...
0
votes
3answers
78 views

Allow user to filter View by Month only using a D/M/Y date field

I have a simple date (birthday) field in my View, and I have added that field as an exposed filter. I want to be able to filter by just the month, so that the View can return a list of users whose ...
0
votes
1answer
40 views

Correct way for a db_query for nodes between two timestamps

I have a very simple db_query. I want to look for any node created between two timestamps. This query works fine in MySQL shell SELECT nid as id,created as start,title FROM node WHERE created ...
1
vote
1answer
29 views

Grouping by day + events spanning several days

This is a question that has already been asked on Drupal.org. It's exactly what I need on my view, but it hasn't been answered yet. Posted by Amanda-333 on April 12, 2011 at 5:58am I wanted to ask ...
0
votes
1answer
31 views

Inputs for “am” and “pm” get messed up on the arabic side when editing content

When creating/editing a node on the english side all works ok but when this is done on the arabic side it breaks up the am/pm form. The markup values also change unlike on the month or hour fields. I ...
0
votes
0answers
19 views

Feeds Import Date Repeat

I have a birthday field that has the date repeat. When i try to use feeds to import the dates using CSV, the dates get imported but i can't import the repeat date. What is the format for the date ...
0
votes
1answer
55 views

Feeds import from RSS changing dates to current timestamp

I'm trying to import some old news items from a legacy site/system. Using feeds importer to get the content from an RSS feed. All works fine except the published date value gets rewritten to the ...
1
vote
0answers
42 views

Calendar view: Making year+month exposed filter go to the right URL

Using the calendar module, I've created a monthly calendar: The built-in navigation using << Prev and Next >> links works great, and correctly navigate to the previous and next ...
0
votes
0answers
15 views

How do you set/change only the hour component of a date using rules?

My site contains an event calendar and several Rules that deal with event dates. I need to write a Rule that will change the hour component of a date while not changing the day, month or year (the ...
0
votes
0answers
32 views

date_format() expects parameter 1 to be DateTime, null given in /date/date/date_elements.inc on line 505

I've got a Drupal 6 site. Out of the blue, I get this error when trying to generate programatically some nodes (date_format() expects parameter 1 to be DateTime, null given in ...
1
vote
2answers
47 views

Modify the date popup to only accept special days

I may need your help please. I have installed the "Date" module and using it with the date popup (datepicker). I need to have the popup just accepting Wednesdays and Fridays as dates. Can anybody ...
0
votes
0answers
53 views

Programmatically change date field in hook_cron

I'm trying go buid a node who is updated every day updating a field 'field_data' to the current date. This is my initial code: function actomodule_cron(){ $nid = 58; $node = ...