javascript subtract days from date
var myCurrentDate=new Date();
var myPastDate=new Date(myCurrentDate);
myPastDate.setDate(myPastDate.getDate() - 8);//myPastDate is now 8 days in the past
Also in JavaScript:
- jquery find div with data attribute value
- $(this) option selected jquery
- jquery enable disable textbox
- error: Error: Unable to resolve module `react-native-gesture-handler` from `node_modules\@react-navigation\native\lib\module\Scrollables.js`: react-native-gesture-handler could not be found within the project.
- javascript string ends with
- left_field in jsgrid
- initialize javascript array variable
- infinite scrolling firestore vuejs
- load js
- loop array in javascript
- random numbers javascript
- angular for loop
- what is angularjs used for
- push javascript
- javascript pass parameter to event listener
- jquery get value of td by class
- angular access current scope from console
- replacing characters in string javascript
- how to get file name in directory node js
- jquery read href attribute
- check if a variable is undefined jquery
- fibonacci series in javascript in range using document.getelementbyid
- create new vuejs project
- format to currency javascript