By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,686 Members | 1,903 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,686 IT Pros & Developers. It's quick & easy.

Javascript countdown: editing?

P: n/a
I've found this link to a countdown timer i'd like to use but although I can
get it to view correctly in my website i'm not sure what to edit for a
different date. What do i change for it to count down to 10:00am 15th August
for example?

Thanks...Andre
Jun 29 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Lee
Dirntknow said:
>
I've found this link to a countdown timer i'd like to use but although I can
get it to view correctly in my website i'm not sure what to edit for a
different date. What do i change for it to count down to 10:00am 15th August
for example?
How can we tell you that without knowing exactly what code you're using?
--

Jun 29 '07 #2

P: n/a
Sorry, had an idiot moment when posting!!!

Link: http://www.dynamicdrive.com/dynamici...dhtmlcount.htm

:-)
Jun 30 '07 #3

P: n/a
In comp.lang.javascript message <f6*********@drn.newsguy.com>, Fri, 29
Jun 2007 10:32:24, Lee <RE**************@cox.netposted:
>Dirntknow said:
>>
I've found this link to a countdown timer i'd like to use but although I can
get it to view correctly in my website i'm not sure what to edit for a
different date. What do i change for it to count down to 10:00am 15th August
for example?

How can we tell you that without knowing exactly what code you're using?
Easily. One changes the date and time in the code to represent the date
XXXX-08-15T10:00:00.000 in a suitable year.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6.
Web <URL:http://www.merlyn.demon.co.uk/- w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/- see 00index.htm
Dates - miscdate.htm moredate.htm vb-dates.htm pas-time.htm critdate.htm etc.
Jun 30 '07 #4

P: n/a
On Jul 1, 1:09 am, Dr J R Stockton <j...@merlyn.demon.co.ukwrote:
In comp.lang.javascript message <f63fn801...@drn.newsguy.com>, Fri, 29
Jun 2007 10:32:24, Lee <REM0VElbspamt...@cox.netposted:
Dirntknow said:
>I've found this link to a countdown timer i'd like to use but although I can
get it to view correctly in my website i'm not sure what to edit for a
different date. What do i change for it to count down to 10:00am 15th August
for example?
How can we tell you that without knowing exactly what code you're using?

Easily. One changes the date and time in the code to represent the date
XXXX-08-15T10:00:00.000 in a suitable year.
And watch it go belly-up in all browsers other than Opera. :-(

While that format might be ISO correct, the best format (i.e.
acceptable in a wide variety of browsers) for a date string I have
found is:

new Date( 'yyyy/mm/dd hh:mm:ss' );

Attempting strict ISO compliance, time zones, or fractions of seconds
is doomed I'm afraid in most browsers.

Incidentally, if I create a date object in the future, say:

var t = new Date( '2010/01/01 01:00:00' );
alert( t.getTimezoneOffset() )

will I see the offset for that date (which may or may not include an
adjustment for daylight saving), or for when the code is run?

It seems to me it *should* return the offset for that particular date,
including daylight saving if known to be in force at that time. The
ECMAScript Language specification doesn't really help here.
--
Rob

Jul 1 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.