# DateUnit

Industry: Core

A date unit in the singular: `"year"`, `"month"`, `"week"` or `"day"`, as Temporal's rounding and difference options name units.

```ts
import type { DateUnit } from "@northguild/gmt";
```

## Definition

```ts
type DateUnit = Temporal.DateUnit;
```

## Used by

- [`isValidDateUnit`](/gmt/reference/plain/validate/isValidDateUnit/)
- [`roundDate`](/gmt/reference/plain/calculate/roundDate/)

## Source

[types/date-unit.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/types/date-unit.ts)
