Date Intrinsic Functions - Max Method

Returns the latest date

Member of Date Intrinsic Functions (PRIM_LIBI.IDateIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)DateValue of the latest date
Date1*InputDateComparison date
Date2*Input (Optional)DateComparison date
Date3*Input (Optional)DateComparison date
Date4*Input (Optional)DateComparison date
Date5*Input (Optional)DateComparison date
Date6*Input (Optional)DateComparison date
Date7*Input (Optional)DateComparison date
Date8*Input (Optional)DateComparison date
Date9*Input (Optional)DateComparison date

Details

Max compares two or more values, returning the largest.

Example

In this example, where Value1, Value2 and Value3 contain "2015-05-31", "2015-04-30" and "2014-12-31" respectively, the result would be "2015-05-31".
#Result := #Value1.Max( #Value2 #Value3 )

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2