---
title: months
framework: applepayontheweb
role: symbol
role_heading: Instance Property
path: applepayontheweb/applepaydatecomponents/months
---

# months

A number between 1 and 12 that represents a month.

## Declaration

```data
long months;
```

## Discussion

Discussion Numbers representing months are 1-based. For example, to represent January, use 1 and to represent December, use 12.

## See Also

### Date Components

- [years](applepayontheweb/applepaydatecomponents/years.md)
- [days](applepayontheweb/applepaydatecomponents/days.md)
- [hours](applepayontheweb/applepaydatecomponents/hours.md)
