UNPKG

react-day-picker

Version:

Customizable Date Picker for React

12 lines (10 loc) 226 B
import { format } from 'date-fns'; /** * The default formatter for the Year caption. */ export function formatYearCaption( year: Date, options?: { locale?: Locale } ): string { return format(year, 'yyyy', options); }