You are here: Resources > Worked Examples > Example: Date Comparison Rule

Example: Date Comparison Rule

This example rule checks all building objects with a commission date after 2013-01-04 04:55:14:000.

A rule to compare the date of an object with a specified date

  1. Set a Class of BUILDING on the root node.
  2. Click and select Condition then Comparison.
  3. Select the upper <<value>> element. From the Type list, select Static Value.
  4. From the Datatype list, select String.
  5. Enter the value Building.commission_date
  6. Select the <<relationship>> element. From the Type list, select Scalar Relationship.
  7. When the second Type list appears, select Greater Than.
  8. Select the second <<value>> element. From the Type list, select Static Value.
  9. From the Datatype list, select Timestamp.
  10. Enter the value 2013-01-04 04:55:14:000