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

learn more… | top users | synonyms

-1
votes
0answers
9 views

i want to use date elements in datex module [on hold]

I want to use date elements and use a php code to my custom node for example i just need month day and year. i use datex module $date = getdate($created); ?><?php ?> <?php echo ...
0
votes
1answer
10 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
49 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
14 views

Set default value for time field in custom form

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'); ...
0
votes
0answers
8 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
13 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
16 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
20 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
29 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
10 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
9 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
24 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
17 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
18 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
14 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
27 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
18 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
21 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
9 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
17 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
0answers
17 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
24 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
30 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
16 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
22 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
27 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
34 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
61 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
16 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
43 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
24 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
50 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
73 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
35 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
23 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
29 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
17 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
48 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
38 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
14 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
25 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
39 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
49 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 = ...
0
votes
1answer
41 views

Sending emails on a specified interval, based on a date field

So I'm trying to create a schedule that will send an email to a user on a few dates - on their birthday (in the system), and on whatever registration dates they have for a program (NOT their user ...
0
votes
1answer
30 views

“Time ago” from “date end” in views

How to print Date Field in Views in format "time ago" for "end dates"? If I config field in views like: Display: End date only, Formatter: Time ago. I get duration form Start date :( Example for ...
1
vote
1answer
36 views

Prevent editing for role after date in field

Individual nodes of a content type need to have their edit capability for a role removed after a date provided by a CCK field. The idea is that these nodes are entered by various roles, given a "start ...
0
votes
1answer
39 views

how to get date filter settings

I want to exposed date filter option but am getting just textbox instaed of datepicker I have installed date module still am not getting following options: installed modules are as shown bellow: ...
1
vote
1answer
66 views

Views: Computing user's age “on the fly”

Is there a way to compute the age of a user on the fly in the "rewrite result" section of a date field? I am trying to avoid computed field and having to use cron on that one. What I would like to ...
0
votes
0answers
22 views

How do I prevent D7 exposed filter on end date from reverting to start date if no end date has been entered?

I have a "membership date" field with an optional enddate and want to create a view showing membership list at a selected date (exposed filter). The basic logic is clear: nodes should appear in the ...