Simplest case examples to learn about date-fns.
This is a simple repo for learning about date-fns which is a modern javaScript date utility library.
Parse
- String + Date Format
- String + Time Format
- String + Format + locale
Get + Set
- Millisecond/Second/Minute/Hour
- Date of Month
- Day of Week
- Day of Year
- Week of Year
- Days in Month
- Weeks in Year
- Maximum of the given dates
- Minimum of the given dates
Manipulate
- Add
- Subtract
- Start of Time
- End of Time
Display
- Format
- Time from now
- Time from X
- Difference
Query
- Is Before
- Is Same
- Is After
- Is Between
- Is Leap Year
- Is a Date