UNPKG

@shinyongjun/react-datepicker

Version:
29 lines (28 loc) 1.41 kB
import { IDateValue, ITimeValue } from '../types/props'; import { TDateUnitType } from '../types/unit'; export declare const checkHoliday: (formatedDate: string, holidays: string[]) => boolean; export declare const toLocalISOString: (date: Date) => string; export declare const formatDate: (dateObj: Date | null, format: string) => string; export declare const formatDateValue: (dateValue: IDateValue, timeValue: ITimeValue, format: string) => string; export declare const getDateUnit: (value: Date | null, unitType: TDateUnitType) => string; export declare const getDateValueUnit: (value: IDateValue, unitType: string) => string; export declare const getTimeValueUnit: (value: ITimeValue, unit: string) => string; export declare const formatLabel: (label: string, format: string) => string; export declare const getMonthArray: (year: number, month: number) => { ISO: string; date: number; day: number; }[]; export declare const setViewDateByType: (origin: string, value: string | number, type: "year" | "month" | "date") => string; /** * most pupolar date format * YYYY-MM-DD - 국제 표준 * DD/MM/YYYY * DD-MM-YYYY * MM/DD/YYYY * MM-DD-YYYY * YYYY년 MM월 DD일 (한국 스타일) * DD Month YYYY (영국 스타일) - 04 September 2023 * Month DD, YYYY (미국 스타일) - September 04, 2023 */ export declare const valueToDateObj: (date: Date | null, time: ITimeValue) => Date | null;