hernansartorio / hernansartorio/react-nice-dates
Add leap year label
Open
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Description
Something that would be cool to have is a label next to date navigation to indicate if that year is leap year. Like this:
``` javascript
{format(month, getYear(month) === getYear(new Date()) ? 'LLLL' : 'LLLL yyyy', { locale })}
{ isLeapYear(month) ? ' (Leap Year) ' : '' }
```

obviously to do this need to add the internationalization(of course if you want to do this )
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.