hernansartorio / hernansartorio/react-nice-dates

Add leap year label

Open
#86 0 comments 0 reactions 0 assignees View on GitHub
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) ' : '' }

```
![imagen](https://user-images.githubusercontent.com/63024336/145830257-3820232c-cb5b-4408-943f-e2b3120ba827.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.