add/sub method: Add/Subtract the specified weeks to the given date.
See original GitHub issueIn the add
function, can we also add specified weeks like
add(new Date(), { weeks: 6 })
Similarly for sub
method.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
c# DateTime to Add/Subtract Working Days - Stack Overflow
Based on Taz's link: public static class DateTimeExtensions { public static DateTime AddWorkDays(this DateTime date, int workingDays) { int ...
Read more >Add or subtract dates in Excel for Mac - Microsoft Support
This formula adds 1 year, 7 months, and 5 days to 6/9/2012, for a result of 1/14/2014. In each formula, a specified number...
Read more >A simple PHP API extension for DateTime. - Carbon
Carbon - A simple PHP API extension for DateTime.
Read more >How to Add/Subtract Time Period to Date Object in Javascript
We can use above methods to add/subtract a given time period to/from a date instance ... Adds specified time period in minutes to...
Read more >Java Add/subtract years, months, days, hours, minutes, or ...
In this article, you'll find several ways of adding or subtracting years, months, days, hours, minutes, or seconds to a Date in Java....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Closed by #1592
You’re right, as they present in ISO 8601’s durations we also should add them.