Answers for "typescript date get last day of month"

11

get last day of month typescript

var date = new Date();
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
Posted by: Guest on May-02-2020
0

calculate last day of month javascript typescript

var today = new Date();
var lastDayOfMonth = new Date(today.getFullYear(), today.getMonth()+1, 0);
Posted by: Guest on August-06-2021

Code answers related to "typescript date get last day of month"

Code answers related to "Javascript"

Browse Popular Code Answers by Language