---
title: CMDateTime
framework: Application Services
role: symbol
role_heading: Structure
platforms: [macOS 10.0+]
path: applicationservices/cmdatetime
---

# CMDateTime

Contains data that specifies a date and time in year, month, day of the month, hours, minutes, and seconds

## Declaration

```occ
typedef struct CMDateTime {
    ...
} CMDateTime;
```

## Overview

The ColorSync Manager defines the `CMDateTime` data structure to specify a date and time in year, month, day of the month, hours, minutes, and seconds. Other ColorSync structures use the `CMDateTime` structure to specify information such as the creation date or calibration date for a color space profile.

The `CMDateTime` structure is similar to the Macintosh Toolbox structure `DateTimeRec`, and like it, is intended to hold date and time values only for a Gregorian calendar.

The `CMDateTime` structure is platform independent. However, when used with Macintosh Toolbox routines such as `SecondsToDate` and `DateToSeconds`, which use seconds to designate years, the range of years that can be represented is limited. 

## Topics

### Instance Properties

- [dayOfTheMonth](cmdatetime/1560620-dayofthemonth.md)
- [hours](cmdatetime/1560584-hours.md)
- [minutes](cmdatetime/1560534-minutes.md)
- [month](cmdatetime/1560099-month.md)
- [seconds](cmdatetime/1560220-seconds.md)
- [year](cmdatetime/1560351-year.md)
