DAY(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
DAY(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Date Transform: Day(A)
Returns the Day part of a Date or Timestamp as an integer from 1 to 31
Purpose
Use this function to:
- Extract the date of the month from a date field
- Extract the date of the month from a time-stamp
Return Value
Property | Value |
---|---|
FieldType | Integer |
FieldSize | Med |
DataType | Discrete |
DataSize | Short |
Example Return Value: 1...31
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”: “DAY(A)” | DAY(A) |
A | “p2”: “DateTimeFieldName” “p2”: “DateFieldName” “p2”: “#YYYY-MM-DD HH:MM:SS” “p2”: “#YYYY-MM-DD” | Required. Source field or value from which to extract the day portion of a date. Supports:
|
JSON Sample
Usage Notes
DAY(A) can be used to extract the day of the month from a Date Field, or from a fixed value.
Example
Example | Details |
---|---|
Description | Extract Day of month from shipping date |
Input |
|
Sample |
Was this article helpful?