@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
12 lines (11 loc) • 472 B
TypeScript
import { AnyLocale } from '../../shared/Context';
import { DateType } from '../date-picker/DatePickerContext';
export type FormatDateOptions = {
locale?: AnyLocale;
options?: Intl.DateTimeFormatOptions;
};
export declare function formatDate(dateValue: DateType, { locale, options, }?: FormatDateOptions): string;
export declare function formatDateRange(dates: {
startDate: DateType;
endDate: DateType;
}, { locale, options, }?: FormatDateOptions): string;