days from date
Hi all
I was looking around all the scrip sights for a clock that tells you how man days from a set date.
But all I found was timeres that tell you how long until a set date
Could I have a little help designing one or editing another script to do what I want?
And help would be apreicated.
It only has to count days, I dont need hours minutes and secondes
Thanx
JLS (Joshua Lee Simpson)
Hugh Jass posted this at 13:56 — 25th November 2000.
They have: 12 posts
Joined: Oct 2000
http://www.wsabstract.com/script/script2/countup.shtml
Vincent Puglia posted this at 16:42 — 25th November 2000.
They have: 634 posts
Joined: Dec 1999
Hi Josh,
Not positive of what you want, but....
var today = new Date();
var todayInMsecs = today.getTime();
var dayInMsecs = 60 * 60 * 24 * 1000;
var tomorrowInMsecs = todayInMsecs + dayInMsecs;
var tomorrow = new Date(tomorrow);
var daysDiffInMsecs = tommorrowInMsecs - todayInMsecs;
var daysDiff = daysDiffInMsecs / dayInMsecs;
You can multiply dayInMsecs by any number of days.
Hope the above helps
Vinny
Where the world once stood
the blades of grass cut me still
Josh Simpson posted this at 00:22 — 26th November 2000.
They have: 147 posts
Joined: Dec 1999
Thanks all
Exactialy what I wanted
Denmark 3 posted this at 02:16 — 26th November 2000.
They have: 881 posts
Joined: Feb 2000
Josh, think you got enough smilies in your signature.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.