A React DatePicker with input masking. Controlled and uncontrolled, ranges, time, any date-fns locale. Zero overhead when react-hook-form isn’t needed.
Type straight through — separators are inserted for you. Backspace skips them, validity is checked round-trip.
null
Through daterly/rhf — type-safe name, validation, defaultValues and control from useForm.
// Fill in the form and click Submitimport { useForm, FormProvider } from 'react-hook-form'
import {
RHFDatePicker,
RHFDateRangePicker,
} from 'daterly/rhf'
const methods = useForm()
<FormProvider {...methods}>
<form onSubmit={methods.handleSubmit(onSubmit)}>
<input {...methods.register('name')} />
<RHFDatePicker
name="birthday"
label="Дата рождения"
/>
<RHFDateRangePicker
name="vacation"
label="Отпуск"
/>
</form>
</FormProvider>ru12 мая 2026enMay 12, 2026de12. Mai 2026<DatePicker
value={d}
onChange={setD}
/>Two props cover 90% of cases. The rest is opt-in.
valueDate | nullControlled valueonChange(d: Date|null) => voidChange callbackformatstringdate-fns mask, e.g. dd.MM.yyyylocaleLocaledate-fns localerangebooleanTwo-step range selectionshowTimebooleanEnable the TimePanelStyles load automatically. Recipes, API and examples for RHF, Zod, Joi and shadcn/ui — in the docs.