gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://daypicker.dev
MIT License
6.09k stars 732 forks source link

`formatters.formatCaption` does not provide current day #2212

Closed AbhiShake1 closed 4 months ago

AbhiShake1 commented 5 months ago

Description

i am converting date to nepali timeline (bikram sambat), and for correct conversion, i need the day along with month and year. but the value of day is always 1.

Expected Behavior

when i try to use day in formatCaption callback, i am always getting 1

Actual Behavior

when i try to use day in formatCaption callback, i should get the selected day. month and year is correct

Steps to Reproduce

Possible Solution

Your Environment

gpbl commented 4 months ago

Hi @AbhiShake1 do you have some code to check out? Thanks.

AbhiShake1 commented 4 months ago

Hi @AbhiShake1 do you have some code to check out? Thanks.

i realized what i needed (bikram sambat format calendar) is out of scope of this library. sorry for any inconvenience. closing the issue