Saturday, March 18, 2017

given a day, get the next day

var somedate = some date object
var thetime = somedate.getTime()
var newtime = thetime + 24 * 60 * 60 * 1000
return new Date(newtime)

*
var somedate = some date object<br />
var thetime = somedate.getTime()<br />
var newtime = thetime&nbsp;+ 24 * 60 * 60 * 1000<br />
return new Date(newtime)

<br />
<div id="sns20170318sa1704d" style="color: greenyellow;">
</div>
<div id="sns20170318sa1704nd" style="color: greenyellow;">
</div>
<script>

function sns20170318sa1704() {

var thedate = new Date()
var thetime = thedate.getTime()
var newtime = thetime + 24 * 60 * 60 * 1000
var newdate = new Date(newtime)
document.getElementById("sns20170318sa1704d").innerHTML = thedate
document.getElementById("sns20170318sa1704nd").innerHTML = newdate





} // sns20170318sa1704




sns20170318sa1704()




</script>

<br />
<div style="color: pink;">
**</div>



*