Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

ts code to move the next month

var now = new Date();
if (now.getMonth() == 11) {
    var current = new Date(now.getFullYear() + 1, 0, 1);
} else {
    var current = new Date(now.getFullYear(), now.getMonth() + 1, 1);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ts #code #move #month
ADD COMMENT
Topic
Name
4+8 =