DateTime Transform: HOUR(A)
Returns the Hour portion of DateTime A
Purpose
Use this function to:
- Extract the hour function of a TimeStamp
- Return the hour portion of a date time field
Return Value
| Property | Value |
|---|---|
| FieldType | Integer |
| FieldSize | Med |
| DataType | Discrete |
| DataSize | Short |
Example Return Value: 0.....23
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”: “HOUR(A)” | HOUR(A) |
| A | “p2”: “DateTimeFieldName” “p2”: “#YYYY-MM-DD HH:MM:SS” | Required. Supports:
|
JSON Sample
Usage Notes
{Insert Notes Here}
Example
| Example | Details |
|---|---|
| Description | Extract Hour portion from DateTime field |
| Input |
|
| Sample |