Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(start.Day == 30 && [3, 5, 7, 9, 11].contains(start.Month) ||
- start.Day == 28 && start.Month == 1) {
- start.Day = 1;
- start.addMonths(1);
- } else {
- start.addDays(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement