MAX(A,B)
- 1 Minute to read
- Print
- DarkLight
- PDF
MAX(A,B)
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Date Transform: MAX(A,B)
Returns which ever date is the most recent between A and B
Purpose
Use this function to:
- Identify which of two events occurred most recently
Return Value
Property | Value |
---|---|
FieldType | Date |
FieldSize | |
DataType | Discrete |
DataSize | Short |
Example Return Value: 2012-01-05
Parameters
Parameter | JSON | Description |
---|---|---|
Table | “targetTable”: “MyTableName” | The target table on which the new field will be created |
Filter | “dataset”: {DataSet_JSON} | Optional. If a filter is applied, records not in the filter Recordset will be returned as null. |
DateTimeFunction | “p1”: “MAX(A,B)” | MAX(A,B) |
A | “p2”: “DateTimeFieldName” “p2”: “DateFieldName” “p2”: “#YYYY-MM-DD HH:MM:SS” “p2”: “#YYYY-MM-DD” | Required. Date formatted data. Supports:
|
B | “p3”: “DateTimeFieldName” “p3”: “DateFieldName” “p3”: “#YYYY-MM-DD HH:MM:SS” “p3”: “#YYYY-MM-DD” | Required. Date formatted data. Supports:
|
JSON Sample
Usage Notes
See also MIN(A)
Example
Example | Details |
---|---|
Description | Select the most recent of two dates |
Input |
|
Sample |
Was this article helpful?