js get the week monday to friday date
var currentDate = new Date();
var firstday = new Date(currentDate.setDate(currentDate.getDate() - currentDate.getDay())).toUTCString();
var lastday = new Date(currentDate.setDate(currentDate.getDate() - currentDate.getDay() + 7)).toUTCString();
console.log(firstday, lastday)
Also in JavaScript:
- how to check if function is running js
- if i pass an object to a function is it the same object javascript
- check scroll top height in react js
- jquery get data attribute of selected option
- disable editing ace code edior
- how to install popper.js in angular 9
- js select all
- separatly fetch a strings with commas inn js
- js percorrer objeto
- javascript sort function
- truthy and falsy values in javascript
- nuxt lang
- How to delete an item in an object in redux
- html to pdf javascript
- jquery make new variable with dynamic name
- lowercase javascript
- set class name javascript
- disable input field with jquery
- rangeSlider format price js
- express generator error handling
- async await javascript stack overflow
- add new items in a select input using js
- percent pipe angular example
- scrollto angular