DateMax

This function returns the later of two dates.

Description

Compare two dates and return that which is chronologically greater.

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 greater is returned.

Comments

 

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