rescript-date
rescript-date copied to clipboard
📆 Date manipulation in ReScript.
Hey there, While writing wrappers for ReDate methods for use in my hybrid TS/ReScript codebase I noticed that both `setSeconds` and `subMonths` had reversed args positions from the rest of...
```res let date = Js.Date.fromString("2021-01-05") date->ReDate.getWeek // returns 1 ``` do you know how can I convert that "2021-W1" back to a date? I would like to be able to...
I'm returning a Postgres interval to my client via EctoInterval which serializes a Postgrex.Interval into some Json that looks like `{secs: 0, months: 50, microsecs: 0, days: 25}`... I'd like...
Implemented a new function called `getQuarter` that returns an integer indicating the quarter to which the date belongs.