473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Javascript countdown: editing?

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
4 2224
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
Sorry, had an idiot moment when posting!!!

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

:-)
Jun 30 '07 #3
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: RootShell | last post by:
Hello First of all i know that PHP is a server side, and JavaScript is a Client side programming language, but i need to know if there is any way i can add the variable "countDownInterval" from...
5
by: nickarnold | last post by:
Hi, this is my first time posting a question, so I apologize if I goof up or do not provide enough information. I am trying to implement a simple countdown script that I grabbed from Dynamic...
18
by: www.gerardvignes.com | last post by:
Upcoming Changes to the JavaScript Language (presented by Google) http://youtube.com/watch?v=-yDS1eGfuWQ I really enjoyed this presentation. If they can get the same improvement in...
5
mageswar005
by: mageswar005 | last post by:
hi, I need a javascript countdown timer to my website, I have already the countdown timer but its have some problem. Note: 1) If i choose the tools/internet option in my browser means , at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.