1 | import type { ContextOptions, DateArg } from "./types.js";
|
2 | /**
|
3 | * The {@link getDate} function options.
|
4 | */
|
5 | export interface GetDateOptions extends ContextOptions<Date> {}
|
6 | /**
|
7 | * @name getDate
|
8 | * @category Day Helpers
|
9 | * @summary Get the day of the month of the given date.
|
10 | *
|
11 | * @description
|
12 | * Get the day of the month of the given date.
|
13 | *
|
14 | * @param date - The given date
|
15 | * @param options - An object with options.
|
16 | *
|
17 | * @returns The day of month
|
18 | *
|
19 | * @example
|
20 | * // Which day of the month is 29 February 2012?
|
21 | * const result = getDate(new Date(2012, 1, 29))
|
22 | * //=> 29
|
23 | */
|
24 | export declare function getDate(
|
25 | date: DateArg<Date> & {},
|
26 | options?: GetDateOptions | undefined,
|
27 | ): number;
|