DateMin

This function returns the earlier of two dates.

Description

Compare two dates and return that which is chronologically lesser.

Type

DATETIME

Arguments

Type

Meaning

1

DATETIME

a date

2

DATETIME

another date

Evaluation

The two dates are resolved and compared, the one which is chronologically lesser is returned.

Comments

 

 
DateMin(@"t", @"January 1, 2001")
 
If current timestep is May 2, 2002: the function returns @"24:00 January 1, 2001"
If current timestep is May 3, 1999, the function returns @"24:00 May 3, 1999"