DateTime Transform: MOD(A)
MINUTE OF DAY. Return the number of minutes since the start of day for DateTime A
Purpose
Use this function to:
- Calculate the elapsed minutes since the start of the day
Return Value
| Property | Value |
|---|---|
| FieldType | Integer |
| FieldSize | Med |
| DataType | Discrete |
| DataSize | Short |
Example Return Value: 0 to 1440
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. |
| DateTime Function | “p1”: “MOD(A)” | MOD(A) |
| A | “p2”: “DateTimeFieldName” “p2”: “#YYYY-MM-DD HH:MM:SS” | Required. The DateTime value from which to calculate minute of the day Supports:
|
JSON Sample

Usage Notes
To return the minute digits of DateTime field A, use the MINUTE(A) function.
See Also:
- HOD(A) (DateTime)
- SOD(A) (DateTime)
- Engineering | Expression Field
Example
| Example | Details |
|---|---|
| Description | Calculate number of minutes since start of day for the purchase time |
| Input |
|
| Sample | ![]() |
