---
title: ApplePayDateComponents
framework: applepayontheweb
role: symbol
role_heading: Structure
path: applepayontheweb/applepaydatecomponents
---

# ApplePayDateComponents

A dictionary that specifies the values for the calendrical units for a date.

## Declaration

```data
dictionary ApplePayDateComponents {
	long years;
	long months;
	long days;
	long hours;
};
```

## Overview

Overview When specifying a range using date components, provide all elements of the ApplePayDateComponents down to the level of granularity that you want to expose. For example, if you specify a range of days, be sure to include values for both months and years in addition to days in the ApplePayDateComponents. Apple Pay on the Web uses the Gregorian calendar when processing dates.

## Topics

### Date Components

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

## See Also

### Start and End Dates of the Range

- [startDateComponents](applepayontheweb/applepaydatecomponentsrange/startdatecomponents.md)
- [endDateComponents](applepayontheweb/applepaydatecomponentsrange/enddatecomponents.md)
