SMONTH(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
SMONTH(A)
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Date Transform: SMONTH(A)
Returns the name of the month in Date A as a string of format 01-January : 12-December
Purpose
Use this function to:
- Create Date/Month mappings
- Create user friendly month labels
Return Value
Property | Value |
---|---|
FieldType | String |
FieldSize | Low |
DataType | Discrete |
DataSize | Short |
Example Return Value: 01-January, 02-February, 03-March...12-December
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”: “SMONTH(A)” | SMONTH(A) |
A | “p2”: “DateTimeFieldName” “p2”: “DateFieldName” “p2”: “#YYYY-MM-DD HH:MM:SS” “p2”: “#YYYY-MM-DD” | Required. The date from which to extract the month Supports:
|
JSON Sample
Usage Notes
See also MONTH(A)
Example
Example | Details |
---|---|
Description | Store Shipping Month as a string |
Input |
|
Sample |
Was this article helpful?