UNPKG

@burglekitt/gmt

Version:

Temporal-based date and time utilities with timezone support and polyfill integration

14 lines (13 loc) 402 B
/** * Return the day of month (1-31) for a given ISO 8601 date string. * * - Returns zero-padded string for day. * - Returns "" for invalid input. * * @param value ISO date string * @returns Day (01-31) or "" on invalid input * * @example parseDayFromDate("2024-03-15") // "15" * @example parseDayFromDate("invalid") // "" */ export declare function parseDayFromDate(value: string): string;