On Mar 30, 9:58 pm, LarryCl <
larrycla...@gmail.com> wrote:
> ... I'd try to
> fix them myself, but I'm not a good enough Javascript coder to fix the
> code.
Here's standard, slightly tested JavaScript to do it (but to after
3pm !) ; I assume "next Friday" means ahead by 1 to 7 days. If it
means "Friday next Week" then the Week must be defined : as
International Standard, or otherwise.
Fri = 5
Today = new Date()
DoW = Today.getDay()
Today.setDate(Today.getDate() + 1 + (7-1 + Fri - DoW)%7 )
Today.setHours(15, 1, 2, 3)
The first 1 and the %7 assure moving ahead by 1-7 days; the second 1
compensates the first; the first 7 assures a positive operand for %;
the rest is obvious.
<URL:
http://www.merlyn.demon.co.uk/js-dates.htm> ff.
--
(c) John Stockton, near London, UK. Using Google, no spell-check.
Mail: J.R.""""""""@
physics.org or (better) via Home Page at
Web: <URL:
http://www.merlyn.demon.co.uk/>
FAQish topics, acronyms, links, etc.; Date, Delphi, JavaScript, ....|