# Month (DateTime)

| **Name**    | ***Month***                                                             |
| ----------- | ----------------------------------------------------------------------- |
| *Syntax*    | Month (Date dateTime)                                                   |
| Purpose     | To return the month part of the specified date time value.              |
| Description | Returns the month part of the specified date.                           |
| Return Type | Int64                                                                   |
| Parameter   | dateTime \[System.DateTime] – Date for which the month will be returned |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FjI0ZDyTpIdKbCFCz2YyP%2F0.png?alt=media)

**Example**

In this example, we will pass a date time value to the function transformation object using a *Variables* object.

This function accepts the following date formats mentioned in the screenshot

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FPaci81QpcqlCXo8Vl2Te%2F1.png?alt=media)

Where,

*dateTime* = 07/06/2013

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FvDtdru9IrZlgSCIPvVm4%2F2.png?alt=media)

In the output window, you can see that the month part of the provided date time value has been returned.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FtEmAMkthCEtXtCVZbLzQ%2F3.png?alt=media)
