Answers.Body: <p>You can add your own relative filters using existing ones</p>
  <p>Navigate to CiviCRM &gt;&gt; Administer &gt;&gt; System Settings &gt;&gt; Option Groups.</p>
  <p>Look for Relative Date Filters &gt;&gt; Edit Options</p>
  <p>Click on Add option, Give a name and set value as ending_35.day</p>
  <p><a href="https://i.sstatic.net/iviZO.png" rel="noreferrer"><img src="https://i.sstatic.net/iviZO.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-14T16:42:59.317Z
Answers.Text: See https://docs.civicrm.org/user/en/latest/searching/relative-date-formats/
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-14T18:12:37.880Z
Answers.Text: Epic. Did not know it is in UI.
Answers.UserDisplayName: Aivars
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-14T15:12:20.913Z
Answers.LastActivityDate: 2023-11-14T15:12:20.913Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>The standard <em>Choose Date Range</em> date picker allows to select from multiple presets, including Last 7 days, Last 30 days, Last 60 days.</p>
  <p>Is there a way to configure my own preset (in this case <strong>last 35 days</strong>)?</p>
  <p>Which file should I edit or is there an article on this?</p>
  <p><a href="https://i.sstatic.net/ZfDxj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ZfDxj.png" alt="enter image description here" /></a></p>
  
Tags: <search><custom-search><date-range><datepicker>
Title: How can I add custom date range in CiviCRM date picker?
ThreadText: # How can I add custom date range in CiviCRM date picker?
  
  (Asked by: username_0 on 2023-11-14)
  
  The standard *Choose Date Range* date picker allows to select from multiple presets, including Last 7 days, Last 30 days, Last 60 days.
  
  Is there a way to configure my own preset (in this case **last 35 days**)?
  
  Which file should I edit or is there an article on this?
  
  [![enter image description here](https://i.sstatic.net/ZfDxj.png)](https://i.sstatic.net/ZfDxj.png)
  
  **Tags:** search, custom-search, date-range, datepicker
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-11-14. Score: 3 | Accepted answer
  
  You can add your own relative filters using existing ones
  
  Navigate to CiviCRM >> Administer >> System Settings >> Option Groups.
  
  Look for Relative Date Filters >> Edit Options
  
  Click on Add option, Give a name and set value as ending\_35.day
  
  [![enter image description here](https://i.sstatic.net/iviZO.png)](https://i.sstatic.net/iviZO.png)
  
  > **Comments:**
  > **username_2**: See https://docs.civicrm.org/user/en/latest/searching/relative-date-formats/  
  > **username_0**: Epic. Did not know it is in UI.  
  
  ---
  
  