Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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)
Comment

PREVIOUS NEXT
Code Example
Javascript :: hashtag strategy angular 
Javascript :: js computed style 
Javascript :: disable server side rendering next.js 
Javascript :: make js file windows command 
Javascript :: display image base64 in REACT NATIVE 
Javascript :: how to start json server 
Javascript :: how to generate package-lock.json from package.json 
Javascript :: javscript generate empty 2d array 
Javascript :: javascript round decimal 
Javascript :: Get child node index 
Javascript :: calculate time difference in hrs moment 
Javascript :: datatable visable show entries 
Javascript :: get element property javascript 
Javascript :: how to push a file to github 
Javascript :: get value of checked radio button jquery 
Javascript :: JS not executing 
Javascript :: moment js convert to local timezone 
Javascript :: uuid javascript 
Javascript :: how to make react router Link active 
Javascript :: change list of objects to list js 
Javascript :: dropzone add download button 
Javascript :: redirect browser javascript 
Javascript :: javascript array distinct 
Javascript :: js test if i am in iframe 
Javascript :: props to react router link 
Javascript :: how to access model data in jsp spring mvc 
Javascript :: check overflow react 
Javascript :: show hide boxes using radio button selection jquery 
Javascript :: invalid geojson object leaflet 
Javascript :: checkbox on click jquery 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =