Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range formatting #3479

Open
cbix opened this issue Jul 21, 2023 · 1 comment · May be fixed by #3577
Open

Range formatting #3479

cbix opened this issue Jul 21, 2023 · 1 comment · May be fixed by #3577

Comments

@cbix
Copy link

cbix commented Jul 21, 2023

With the Intl.DateTimeFormat API it's possible to formatRange which returns a concise string given a date range. It would be nice if this was possible using date-fns and existing format strings, for example:

formatRange(new Date(2023, 4, 5), new Date(2023, 4, 6), 'd MMM') // "5–6 Apr"
@sim0n92
Copy link

sim0n92 commented Sep 25, 2023

Hi, Could I be assigned to this issue?

@sim0n92 sim0n92 linked a pull request Nov 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants