# Quarter (DateTime)

| **Name**    | ***Quarter***                                                             |
| ----------- | ------------------------------------------------------------------------- |
| Syntax      | Quarter (Date dateTime)                                                   |
| Purpose     | To return the calendar quarter of a provided date time value.             |
| Description | Returns calendar quarter for the specified date time value.               |
| Return Type | Int32                                                                     |
| Parameter   | dateTime \[System.DateTime] – Date for which the quarter will be returned |

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

**Example**

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

Where,

*dateTime* = 08/15/2020

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

In the output window, you can see that the calendar quarter 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%2F9POJAAa2MMLYtCKpW1g5%2F2.png?alt=media)
