D
Deleted User
Guest
I like to see photos of what people do. Here's what I was up to at the weekend
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
/* Difference between two dates */
var dLine = document.getElementById("deadline").value;
var expyDate = new Date(dLine); // 2000-01-01
var nowDate = new Date(); // Today
// Calculate the difference of two dates in total days
function diffDays(d1, d2)
{
var ndays;
var tv1 = d1.getTime(); // msec since 1970
var tv2 = d2.getTime();
ndays = (tv2 - tv1) / 1000 / 86400;
ndays = Math.round(ndays - 0.5);
return ndays;
}
var nDays = diffDays(nowDate, expyDate);
document.getElementById('daydiff').innerHTML = nDays;
document.getElementById('skill').innerHTML = "\<div style\=\"width\:"+nDays+"\%\"\> \<\/div\>";
Ham Radio since 1958
Motorcycles since about 1958~
I hate gardens, I grew up on a Truck Farm and had to plow/harrow/hoe/plant/dig/sow seed/mow/stack just about anything that had a root on it... I vowed that when I left the home farm, that was the last time I ever owned a hoe or shovel.
guns, but not a fanatic, more for protection of self/livestock
Travel, love to go places and see if the Grass really is Greener on the other side.
Computers/programming/forums as each appeared on the scene.....
My vocation has always been in Electronics, so anything to do with that, caught my interest.