Skip to main content

addDays / addWeeks / addMonths / addYears
addDays / addWeeks / addMonths / addYears

This article explains how you can add or subtract value from a date instance. It also gives you an example knowledge map so you can explore adding or subtracting value from a date instance inside the Rainbird Studio.

The expressions discussed in this article are used by Rainbird to add or subtract a value to or from a date instance that has been created at runtime by the end-user or that exists as a fact in a knowledge map. 

Click on one of the expressions below for information on how to use the expression and an example model using each expression: 

0 followers
0 questions
0 posts

You will need to register to be able to post or comment on a topic.  

addDays / addWeeks / addMonths / addYears - Downloadable Model

When viewing the knowledge map generated by the .rbird file below, please see the list below for which query you will need to run to see each date expression in action:

  • addDays - 'day before yesterday'
  • addWeeks -... (More)

addYears - Example Map

This article will show you how to build a map that uses the addYears() function to add a number of years to a date entered at runtime.

Create Concepts & Relationships

Create a string concept, ‘Start Point ‘and a... (More)

addWeeks - Example Map

Creating Concepts & Relationships

Create a string concept, ‘Start Point ‘and a date concept, ‘Date Concept’, connected with a relationship, ‘start date’:

Building the Rule

Next, create a second relationship between the ‘start point’ and ‘date concept’... (More)

addMonth - Example Map

Creating Facts & Relationships

Create a string concept, ‘Start Point ‘and a date concept, ‘Date Concept’, connected with a relationship, ‘start date’:

Building the Rule

Next, create a second relationship between the ‘start point’ and ‘date concept’... (More)

.menu.bell.icon {color: #1c083b;}