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

learn more… | top users | synonyms

0
votes
2answers
21 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
0answers
9 views

Drupal 8 custom entity field “datetime” [on hold]

Drupal 8. Trying to do own entity and create "datetime" field, some one have examples for that ? because what i did have problem with removing after. "NestedArray::getValue() must be of the type ...
0
votes
1answer
12 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
16 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
18 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
23 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
46 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
10 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
25 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
21 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
34 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
61 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
23 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
20 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
19 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
30 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
26 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
12 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
20 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
33 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
32 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
30 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
21 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
28 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
32 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
54 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
16 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 ...
0
votes
0answers
11 views

How to hide the “date” field in the summary of an event on a month calendar

In D7 with the calendar module, in the "month" view I want to hide the display of the day of the events. It makes no sense, and takes up valuable room to see a little square on the calendar that ...
0
votes
0answers
13 views

Date field seen as Content in view (not as date)

I have a content type Invoice with a field Send_Date of type Date. When I add a filter to a view to select between dates, this works perfectly. But I also have a content type Product with a field ...
0
votes
0answers
25 views

Cannot display date_field in a content view

Without succes i am trying to display a date_field in a content view (so no fields view). I rather dont want a fields view as i dont want to theme the whole view. The view is displaying other fields ...
0
votes
0answers
22 views

Start/End Date formatting

I've been asked to modify someones else's code, basically we have a start date and end date but the format at the moment is Month, Date, Year - Month, Date, Year. But we want it to be Date - Month, ...
0
votes
2answers
43 views

Trying to get a “Is between” date filter to work… it is returning an offset by + 1 days.

Please see my website to see what i'm talking about: http://apollo.tbc.iit.edu/~spaceweather/sw_test/?q=download-cases-data# Ive found some examples and posts on how to do this but even after ...
0
votes
0answers
39 views

Views: upcoming events list with first upcoming event at the top

I have content type which have date field(multiple). It also collect the end date. Now I am creating a view which will list the nodes of that content type. It will sort the nodes with the start date ...
0
votes
0answers
17 views

Display multiple date field value like [date-value] [time-value1] to [time-value2] in views

I have date field in a node where admin can add two dates with time. Suppose the first value for the date field is 10-12-2014 19:00 and 2nd value is 10-12-2014 20:00 So it should display the date ...
0
votes
1answer
53 views

Views Filter Criteria “Now” not working on webform submitted data field:event date

The closest I have found to this is This Question which sounded perfect but didnt work for me. I need to show a list of results in my view equal to or greater than todays date. In the past, on a ...
0
votes
0answers
11 views

Comment post time is not applying the timezone

I have an intranet built in Drupal 7 that serves 2,000 users, all located in the same timezone. There are only 3 types of users setup; authenticated, admin, and editor. The global timezone setting in ...
0
votes
1answer
16 views

My events are not displayed in calendar

Here I have a problem with Views and Calendar modules. I created test events with a date field. I configured a view for Calendar with the date field, but no events are displayed ... How to? And if ...
0
votes
1answer
30 views

Zero pad Drupal 7 Form API Date Control day and month HTML select element

I'm using the Form API Date controls for my form, and I am wondering if there is a way to zero pad the month and day values in the HTML select elements for values less than 10 at declaration time. I ...
0
votes
2answers
71 views

Drupal timezone and database

I have a content type with datetime field. When I save node, in database I have 2014-04-28 11:00:00 for instance. But when I edit the node i have 2014-04-28 13:00:00. I guess that it has something to ...
0
votes
1answer
28 views

Create a list of events where an event can have more than one date

I am looking to create a view list of upcoming events but where each event may have more than one date as below: Event 1 - 12th Jan Event 2 - 12th Feb Event 3 - 12th Mar Event 1 - 12th Apr Event ...
0
votes
2answers
75 views

How to count date difference excluding weekend and holidays in Computed Field

How to count date difference excluding weekend and holidays? I should count the number of days between two dates but the weekends and holidays must be excluded from the counting. I used Computed ...
0
votes
1answer
57 views

Display Jalali (Shamsi) Date in Archive View

I have a Persian language website and I need to a archive block in my site. but date of default archive view is Gregorian. I install Datex module and it convert all date of nodes to Jalali(Shamsi) ...
1
vote
1answer
36 views

Migrating dates in the same timezone: convert arguments to subfields?

I have a migration that is successful except for the timezone. $this->addFieldMapping('dest_date', 'source_date'); For some reason the above code causes a timezone conversion to happen between ...
0
votes
1answer
13 views

Rankings and Dates in Views (data architecture)

I'm working on building a small name ranking database, but I'm having some issues coming up with how to architect the data. Here's the scenario: You have a list of 100 names with rankings by year. | ...
0
votes
0answers
14 views

Display an entity whose creation date matches another entity's with EVA?

I am using Heartbeat module to log activities using Rules, however Heartbeat entities/activities have no way (as far as I know) of checking whether they have been viewed or not. To solve this issue ...
0
votes
0answers
21 views

Can you hide date field when its date matches with the sites date? [duplicate]

I have a date field in my site and I want it to hide/be invisible when the date I have set is now or matches the sites date. I hope there is a way to do this using Rules.
0
votes
2answers
45 views

Can I hide date field if older than a certian time using Rules?

I want to know if I can hide the values of a date field if the values are older than a certain time. The website is built with Drupal 7, and Display Suite.
-1
votes
1answer
37 views

How do I add a date format to custom block output

I have two custom block output fields that are date function my_three_upcoming_events() { $output = ''; $now_events = views_get_view_result('schedule_list2'); $upcoming_events = ...
3
votes
3answers
142 views

how to create views with month and day in contextual filter

Let suppose I have actor content type, it has a birthday field (it is date ), I want get all actor that has equal month and day of birth,I want to create a views with birthsearch/%/% path, and then ...