--- title: "SMONTH(A)" slug: "engineeringdatefunction2-16" updated: 2021-10-15T13:54:33Z published: 2021-10-15T13:54:33Z canonical: "docs.datajet.app/engineeringdatefunction2-16" --- > ## 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. # SMONTH(A) ## 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 | ```shell Example Return Value: 01-January, 02-February, 03-March...12-December ``` ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/SMONTH_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. | | **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:* - **DataType:** Discrete / Continuous - **Field Type:** Date, DateTime - **Fixed Value:** #YYYY-MM-DD, e.g. #2021-04-05 - **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/SMONTH_JSON.PNG) ## Usage Notes See also [MONTH(A)](/v1/docs/engineeringdatefunction2-15) ## Example | Example | Details | | --- | --- | | **Description** | Store Shipping Month as a string | | **Input** | - Table: = [transactions] - Function: = DateTransform - **DateTimeFunction: = SMONTH(A)** - A:= [transactions].[dtShipping] - Name: =ShippingMonthAsString | | **Sample** | ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/SMONTH_Example.PNG) |