how to substract date object javascript
Example
<html>
<head>
<title>JavaScript setDate Method</title>
</head>
<body>
<script>
var dt = new Date("December 30, 2017 11:20:25");
dt.setDate( dt.getDate() - 10 );
document.write( dt );
</script>
</body>
</html>
Output
Wed Dec 20 2017 11:20:25 GMT+0530 (India Standard Time)
Also in HTML:
- Sending HTML Code Through JSON
- how to justify text in html
- bootstrap 4 icons
- how to create a do to
- modal lightning salesforce
- color de las letras en html
- ionic textarea
- textarea bootstrap
- hyperlink html
- how to create password input in html
- html button type
- html form select
- tag html lang attribute
- how to put an image in html
- html create a multi-line text input
- center header html
- hashtag in html
- html image
- sort by value map
- HTML Image full screen width
- vmplayer ubuntu
- adding space tab in html
- external style sheet
- html import jquery