UNPKG

@redocly/theme

Version:

Shared UI components lib

15 lines (14 loc) 721 B
/** * Formats a date string to localized short date format (e.g., "Dec 12, 2025") * @param dateString - ISO date string or null * @param locale - Locale string (e.g., "en-US") * @returns Formatted date string or empty string if dateString is null */ export declare function toLocalizedShortDate(dateString: string | null, locale: string): string; /** * Formats a date string to localized short date-time format (e.g., "Dec 12, 3:45 PM") * @param dateString - ISO date string or null * @param locale - Locale string (e.g., "en-US") * @returns Formatted date-time string or empty string if dateString is null */ export declare function toLocalizedShortDateTime(dateString: string | null, locale: string): string;