The major difference between Date and DateTime functions (Date.before, Date.after, Date equals/DateTime.before, DateTime.after)

The major difference between Date and DateTime functions (Date.before, Date.after, Date equals/DateTime.before, DateTime.after)

book

Article ID: KB0086423

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:  Date.before and Date.after ignores the time and only considers the date.

Environment: All

Symptoms: The rule does not consider the time when executing this function.  The only thing it considers is the date as designed.

Cause: All the Date functions, Date.after, Date.before, Date.equals specify the following in the help baloon:
     - The comparison is done independently of the time of day....
This means that it completely ignores the time and only considers the day.

Resolution:  Use the DateTime function instead which considers both date and time.

Issue/Introduction

The major difference between Date and DateTime functions (Date.before, Date.after, Date equals/DateTime.before, DateTime.after)