Answers.Body: <p>Depending on your Trigger in the rule, I would suggest just adding a time-based condition.</p>
  <p>If contribution, add criteria «Field Value Comparison» for «Date Received» and set the operator to less than the desired date.</p>
  <p>If activity, use activity date. If new membership, use membership start date, and so on...</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T14:46:24.837Z
Answers.Text: It wouldn’t disable the rule, but it would prohibit the rule from performing any action. And then you can have a general review of you rules at certain intervals...
Answers.UserDisplayName: Flying
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T15:47:02.810Z
Answers.Text: Awesome! Thanks
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T20:59:57.977Z
Answers.Text: The date received condition when a contribution is added does not seem to trigger. Not sure if it’s a bug of civil rules!!
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T21:01:43.350Z
Answers.Text: @Tapash I would assume you have to set the date by the exact same format as the raw date values in your database...?
Answers.UserDisplayName: Flying
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T21:02:32.000Z
Answers.Text: Thanks. What is the best way to find the raw date format?
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T21:03:45.710Z
Answers.Text: Do you have access to the SQL-tables? Try looking it up there?
Answers.UserDisplayName: Flying
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T21:04:29.947Z
Answers.Text: yes I do. Many thanks for your tips.
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T14:44:30.243Z
Answers.LastActivityDate: 2020-12-08T14:44:30.243Z
Answers.UserDisplayName: Flying
Body: <p>I have a rules that should perform action only until a certain date. What would be the best way to handle this situation so that after a given date the specific rule would be turned off automatically? Thanks</p>
  
Tags: <civirules>
Title: How can I automatically turn off civirules after a given period?
ThreadText: # How can I automatically turn off civirules after a given period?
  
  (Asked by: username_0 on 2020-12-05)
  
  I have a rules that should perform action only until a certain date. What would be the best way to handle this situation so that after a given date the specific rule would be turned off automatically? Thanks
  
  **Tags:** civirules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-12-08. Score: 4 | Accepted answer
  
  Depending on your Trigger in the rule, I would suggest just adding a time-based condition.
  
  If contribution, add criteria «Field Value Comparison» for «Date Received» and set the operator to less than the desired date.
  
  If activity, use activity date. If new membership, use membership start date, and so on...
  
  > **Comments:**
  > **username_1**: It wouldn’t disable the rule, but it would prohibit the rule from performing any action. And then you can have a general review of you rules at certain intervals...  
  > **username_0**: Awesome! Thanks  
  > **username_0**: The date received condition when a contribution is added does not seem to trigger. Not sure if it’s a bug of civil rules!!  
  > **username_1**: @username_0 I would assume you have to set the date by the exact same format as the raw date values in your database...?  
  > **username_0**: Thanks. What is the best way to find the raw date format?  
  > **username_1**: Do you have access to the SQL-tables? Try looking it up there?  
  > **username_0**: yes I do. Many thanks for your tips.  
  
  ---
  
  