Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
10 votes

How can I change the date format in a Search Kit result?

You must be on CiviCRM 5.47+ to have the "Use Smarty in Search Kit rewrites" feature. Create a Search Display based on your search - e.g. Add ยป Table using the Add button in the left pane. ...
Jon G - Megaphone Tech's user avatar
6 votes
Accepted

Searching/filtering by the date a contact was added to a group

I have a report for this on Github. EDIT: Ignore comments below; this report works on modern versions of CiviCRM, and Laryn's improvements are now part of my extension.
Jon G - Megaphone Tech's user avatar
6 votes

How to change the date format for the receipt date in a template

If you want 28 February 2019 {foreach from=$contributions item=contribution} {assign var="date" value=$contribution.receive_date|date_format:"%d %B %Y"} If you want 28 02 2019 {foreach from=$...
Iowa Boy's user avatar
  • 2,388
5 votes
Accepted

Smart Group relative date criteria not saving

I recall we've experienced this for quite a number of fields in Advanced Search. Some of them are - Event Dates, Registration Dates and some date filters in Case section. I did a patch to fix this ...
jitendra - fuzion's user avatar
5 votes
Accepted

How to use Smart Groups with relative dates?

This was a bug in Core CiviCRM which is now fixed starting from version 4.7.14.
Aivars's user avatar
  • 1,034
5 votes
Accepted

Custom date field formatting with smarty

Found the answer. The civi field token must be captured to a Smarty variable first: {capture assign=arr}{contact.custom_105}{/capture}{$arr|date_format:"%A, %B %e, %Y"}
Phil Morice Brubaker's user avatar
5 votes

Default value for custom date field

/** * Implements hook_civicrm_buildForm(). * * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm * */ function extensionname_civicrm_buildForm($formName, $form) { ...
Pradeep Nayak's user avatar
4 votes

Setting default date value via civicrm_buildForm hook no longer displays date

I think the date widget have its default value based on the format it is being set. Eg - For mm/dd/yyyy input format set in Administer -> Localization -> Date Formats. This works - function ...
jitendra - fuzion's user avatar
4 votes

Why has entering a date changed in 4.7.16? Can it be reverted?

There was an issue due to some refactoring around the handling of date fields to try to standardise them. This lead to a problem most notably in birth date fields in 4.7.16 but i'm guessing can be ...
Seamus Lee's user avatar
  • 1,289
4 votes
Accepted

Date of birth -- months only show through September

The choice of months is restricted because the date-picker does not allow future dates to be chosen for the birth date field. First select a year in the past. Then you will see all months available ...
Sean's user avatar
  • 3,168
4 votes
Accepted

How to create a Drupal View that calculates activity end time by duration

The template file is just to change how this one field is displayed. Create a view of civicrm activities. Add the Scheduled Activity Date field three times. First to display the date. Second to ...
pmoz's user avatar
  • 1,821
4 votes
Accepted

Edit birth date

Assuming you have a default layout, then there is a Date of Birth field on a contact's summary tab.
Aidan's user avatar
  • 13.5k
4 votes

Event on several different days

I don't think what you need is possible using the built-in iCal feed and a single event - not without writing an extension. However, perhaps @petednz-fuzion can chime in on the status of his yet-to-be-...
Jon G - Megaphone Tech's user avatar
3 votes
Accepted

Gift Aid Declarations with overlapping dates

The short answer is 'No' there aren't any settings to allow this. Gift Aid declarations don't have to have an end date, when you sign up to Gift Aid to an organisation you can effectively sign up for ...
Andy Clark's user avatar
  • 4,845
3 votes

Can civirules be triggered off a custom field of type date for eg Date equals Now

You are on the right track with using now in field comparision. See my Question and Answer here. trigger: daily trigger for group members condition: field value comparison for a date, datetime or ...
Alain Schaefer's user avatar
3 votes
Accepted

Is there a way to have a "from and to" field , need this for business hours "to and from"

This is not currently available in CiviCRM to have time range custom field. The alternate solution would be to create two date time field To and From and using buildForm hook and PageRun hook and/or ...
Pradeep Nayak's user avatar
3 votes

How to change the date format for the receipt date in a template

As of CiviCRM 5.43, there is a much simpler answer: {contribution.receipt_date|crmDate:"shortdate"} There is full documentation for the crmDate filter.
Jon G - Megaphone Tech's user avatar
3 votes

Contact reminder

You can create a scheduled Activity with this contact. https://docs.civicrm.org/user/en/latest/organising-your-data/activities/ via the Actions button on the contacts Summary screen If you add the ...
Thomas Schüttler's user avatar
3 votes
Accepted

How to suppress translation of months (or all fields) in receipts?

Welcome to CiviCRM SE KLeeHK! I am not sure if you can suppress the translation of particular Smarty tags e.g. {$receive_date} or change the date format of only this occurence. The receipts can be ...
Fabian's user avatar
  • 3,587
3 votes

How to create new Relative Date Filter?

Certain ones can work by just adding option values, but I don't think everything. For example @andy-clark you can do prior 6 months as "ending_6.month" which is supported by the default clause here ...
Demerit's user avatar
  • 23.1k
3 votes
Accepted

Date in English even when page is set to french

Your server must support the requested locale (ex: fr_FR.utf8). On Debian-based systems, as root (administrator), you can enable it with: dpkg-reconfigure locales and then enable the locale. It does ...
bgm's user avatar
  • 3,421
3 votes

Event on several different days

As an alternate I feel you can create price sets that shows price field for each date (Label?). And tweak the calendar plugin to use price field to show event on three different dates
Pradeep Nayak's user avatar
3 votes
Accepted

How to calculate number of days to/from a date

You can use the field transformation and choose days between two dates. Code: [ [ "SavedSearch", "save", { "records": [ { "...
Pradeep Nayak's user avatar
2 votes
Accepted

How can I disable the JQuery date widget and all just text input?

Adding the following CSS disables the date picker widget and allows users to simply type the date into the field:- #ui-datepicker-div, .ui-datepicker .ui-widget { display: none !important; }
Darren's user avatar
  • 751
2 votes

How do I allow custom date field over 10 years ago?

Also posting my answer to How do I override the default date range of JQuery date widget? here - for those following this Question: I think the answer may be that this is working in 4.7.7 - set your ...
KarinG - Semper IT's user avatar
2 votes
Accepted

Where are CiviCRM's date preferences actually used?

There are actually (at least) two places where you can change the formats. One is where you described, the other one (that affects most of the displayed date formats e.g. in the contact tab) is ...
Fabian's user avatar
  • 3,587
2 votes

How do I override the default date range of JQuery date widget?

I think the answer may be that this is working in 4.7.7 - set your date range in the Custom Field - Edit screen [I want to go back 30 years]: Custom Date SE field: And this is indeed giving me a ...
KarinG - Semper IT's user avatar
2 votes

How do I override the default date range of JQuery date widget?

Have you tried adjusting the settings at Administer > Customize Data and Screens > Date Preferences. to achieve what you want?
JoAnne's user avatar
  • 3,450
2 votes
Accepted

Setting default date value via civicrm_buildForm hook no longer displays date

You don't say your version, but I'm guessing 4.7 from the description. The trick is to use ISO date format. So this should work: function civitest_civicrm_buildForm($formName, &$form) { $...
TwoMice's user avatar
  • 1,824
2 votes

Is it a bug that Relative Dates are broken in Search and Smart Groups?

I think you may find that, although the search results show the relative dates converted to fixed dates, when you create a smart group from the results it will save the relative date range. That is ...
JoAnne's user avatar
  • 3,450

Only top scored, non community-wiki answers of a minimum length are eligible