Answers for "get current weeks first date and last date"

0

get current weeks first date and last date

weekdate() {
     var curr = new Date();
     var first = curr.getDate() - curr.getDay() + 1;
     this.firstday = new Date(curr.setDate(first));
     this.lastday = new Date(curr.setDate(curr.getDate() + 6));
   }
Posted by: Guest on May-06-2021

Code answers related to "get current weeks first date and last date"

Browse Popular Code Answers by Language