--- title: "MOD(A)" slug: "datetimetransform-template-5" updated: 2021-11-11T17:35:58Z published: 2021-11-11T17:35:58Z canonical: "docs.datajet.app/datetimetransform-template-5" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # MOD(A) ## 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 | ```shell Example Return Value: 0 to 1440 ``` ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/DT_MOD_Sample.PNG) ## 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:* - **DataType:** Continuous - **Field Type:** DateTime - **Fixed Value:** #YYYY-MM-DD HH:MM:SS, e.g. #2021-04-05 11:01:08 | ## JSON Sample ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/DT_MOD_JSON.png) ## 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** | - Table: = [transactions] - Function: = DateTimeTransform - **DateTimeFunction: = MOD(A)** - A:= [transactions].[dtPurchase] - Name: =MOD_A | | **Sample** | ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/DT_MOD_Example.png) |