Skip to main content

daysBetween / weeksBetween / monthBetween / yearsBetween
daysBetween / weeksBetween / monthBetween / yearsBetween

This article explains how you can use time expressions to calculate the number of days, weeks, months or years between two instances. It also gives you example knowledge maps to explore time expressions inside the Rainbird Studio.

The expressions discussed in this section are used by Rainbird to calculate the days/weeks/months or years between two dates instances that have either been created at runtime or that exist in the knowledge map.

Click on an expression below for more information and for an example model that uses that expression:

0 followers
0 questions
1 post

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

daysBetween / weeksBetween / monthBetween / yearsBetween - 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:

  • daysBetween - 'has days remaining'
  • weeksBetween -... (More)

yearsBetween - Example Map

This article will demonstrate how to build a map that uses the yearsBetween() expression to calculate how many years have passed since the beginning of the millennium. The map will count the number of years between the date the query... (More)

monthsBetween - Example Map

This article will demonstrate how to build a map that will use the monthsBetween() expression to count the number of months remaining until a pregnant person's due date.

Creating Concepts & Relationships

Create the following concepts:

1 String Concept... (More)

weeksBetween - Example Map

This article will demonstrate how to build a map that uses the weeksBetween() expression to calculate the remaining weeks until Christmas.

Creating Concepts & Relationships

Create the following concepts:

1 string concept – ‘Person’

1 number concept – ‘Christmas’... (More)

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