We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! Thanks a lot for this library.
I stumbled upon a case where I need to be able to set a "maximum" date for the current month. E.g.
dayjs().set('date', 'max'); // is it 30 or 31 or 28? I wish I could just tell the lib to pick the right one
What do you think? If you agree that it is a good idea I'd be glad to make a PR. But I think the exact API should be discussed first.
Thanks!
The text was updated successfully, but these errors were encountered:
Oh, well, I just realized I can do this:
dayjs().set('date', 1).add(1, 'month').subtract(1, 'day');
:)
Sorry, something went wrong.
You can use
dayjs().endOf('month')
Oh, thanks!! Did not find that. I guess the issue is solved, then
No branches or pull requests
Hello! Thanks a lot for this library.
I stumbled upon a case where I need to be able to set a "maximum" date for the current month. E.g.
What do you think? If you agree that it is a good idea I'd be glad to make a PR.
But I think the exact API should be discussed first.
Thanks!
The text was updated successfully, but these errors were encountered: