return to top of page

Jim and Gloria Fekete

Welcome to Our Home on the World Wide Web

Canada its Provinces, Territories and Flags


Countdown Days to Specified Date

This Page Started in MyTryF.html

Some Calculations Modified and Many Added

Using embedded inc/multicountdown.js and inc/AddComma.js in header section


Many Local Variables and Calculations

Today is

 

Negative values indicate that the event was before the current or specified date. Hard coded results will eventually go out of date and the results will become negative but local calculations should remain accurate and current as long as computers support javascript in its current form.

 

You will notice some duplication throughout this page and some other pages because I keep learning and in some cases improving solutions. Because this whole site is a learning experience I make no apology for all the duplications and I am aware that sometimes the results displayed may vary by 1 in either direction due to how some calculations round the results. In the big scheme of things plus or minus 1 makes little or no difference. If you find somthing wrong, by all means let me know, so I can correct the error. I know finger checks happen inadvertently since I am far from perfect. Enjoy the site and use what you can.

 




musical notes musical notes


The Four Aces - Love Is a Many Splendored Thing.    Lyrics




Negative values throughout this site indicate an event in the past.

Gloria's 81st Birthday, August 19, 2026 will be in     —» days
Gloria's 80th Birthday, August 19, 2025 was        —» days ago
Gloria's Birthday, August 19, 2030 will be in          —» days
Gloria's 100th Birthday, August 19, 2044 will be in days

Countdown to Dawn's 100th Birthday May 26th 2068  —» days
Countdown to Dawn's 100th Birthday May 26th 2068  —» days

Jim's 85th Birthday, March 6th 2028 will be in —» days
Jim's 85th Birthday, March 6th 2028 will be in —» days

Christmas 2028  —» days
Christmas 2028  —» days

Christmas 2043  —» days
Christmas 2043  —» days

New Year 2026  —» days
New Year 2036  —» days
New Year 2043  —» days

Canada Day 2026  —» days
Canada Day 2026  —» days

Canada Day 2067 in  —» days. Celebrating 200 years of Confederation.
Canada Day 2067 in  —» days. Celebrating 200 years of Confederation.

I was here for Canada's Centennial and Sesquicentennial but I'm afraid Canadians will have to celebrate the Bicentennial without me.

Thanksgiving Canada 2026  —» days
Thanksgiving Canada 2026  —» days – ONLY have 2026 & 2035 in multicountdown.js

Thanksgiving Canada 2035  —» days
Thanksgiving Canada 2035  —» days

Halloween 2026  —» days – ONLY have 2026 in multicountdown.js

Thanksgiving USA Nov. 26 2026  —» days
Thanksgiving USA Nov. 22 2035  —» days – ONLY have 2026 & 2035 in multicountdown.js

Countdown to Jim's 100th Birthday – March 6, 2043  —» days
Countdown to Jim's 100th Birthday – March 6, 2043  —» days

Countdown Done Using /inc/multicountdown.js Must modify the code, adding date required for countdown. HOW TO – Example provided in multicountdown.js
Commas improve readability of numbers .

 






musical notes musical notes


Frozen Ghost - Dream Come True.    Lyrics



Count Days to Specified Date/Event

Using Local Calculations

Using embedded inc/countdown.js and inc/AddComma.js in header section

Today is .

Requires inc/multicountdown.js in header section or the code must be added locally. For commas you must include inc/AddComma.js in header section.

.

 

MyJavascript.html
Demonstrates manipulation of Date elements and use of Add Commas and Suffix to Numbers
External embeds AddComma.js & AddSuffix.js e.g. 1,000 and 2nd 3rd


Parse Date Elements

Created September 22, 2020


Date elements also available
JavaYear.getTime(); - Number of milliseconds since 1/1/1970 @ 12:00 AM
JavaYear.getSeconds(); - Number of seconds (0-59)
JavaYear.getMinutes(); - Number of minutes (0-59)
JavaYear.getHours(); - Number of hours (0-23)
JavaYear.getFullYear(); - The four digit year (1900-9999)
JavaYear.getTimezoneOffset(); - Minutes between Local and UTC Time

Full Date Elements Reference – Includes Set Date

ALSO SEE

Date Elements – Much more comprehensive Javascript Reference



Family Calculations in Days

Today is .

Some assumptions to make note of. Some calculations assume that everyone living on, October 13th 2019 @ 04:26 A.M., is still on the green side of the grass . Some milestones that are in the future will one day be passed and new calculations will be required to reflect those changes, as the new reality. Some future calculations exist but are commented out in the code. Negative numbers (e.g. -103) indicate a passed event, requiring update.

There is an oddity in javascript. When you specify a date e.g. May 26 1968 javascript always assumes midnight (0 hours, 0 minutes, 0 seconds). When you specify Today javascript assumes the current date and current time. The difference is that all calculation counting the days will be off by 1 day unless you specify ThisDate as midnight Today (frankly I was not overly concerned about 1 day, one way or the other, in these calculations). I am sure most don't care about how many days to or since their next birthday but I took on the challenge simply for the lesson learned. You may notice that javascript also knows Daylight Saving time from Standard time. There is a global battle to eliminate the twice a year changing of the clocks, so this phenomenon may vanish one day.
How old are you on the day you are born? It is your first day on Earth but are you 0 (zero) days old? Your first year is measured in hours, days, weeks or months not years.

This day is November 2nd 2019 and it just so happens that on this date I am 28,000 days old.

See output below:


 

More Detailed Date Calculations – Number of Days & Years Months Days

 

 

 

 

 

 

 

 



musical notes musical notes


Jim Reeves - May the Good Lord Bless and Keep You.    Lyrics




There are lots of numbers on this page, some may not be exacly where you expect to see them, but they are probably there if you look hard enough.

If there is a number that you would like to see added, let me know the event name and event date; I will do my best to add it.



 

Rounding to Integer Value in Javascript
floor round or ceil

Demonstrate the difference between the rounding of fractional values.

Tiny   = 25.0001
Small = 25.49
Large = 25.51

var Math.floor(value); var Math.round(value); var Math.ceil(value);

floor always rounds fractions Down to the lower integer value.
round rounds fractions to the nearest integer value Up or Down.
ceil always rounds fractions Up to the Higher integer value.

 


Rounding Fractions in Javascript
Specify decimal places

Math.round(3.14159 * 100) / 100 Returns a number
parseFloat(3.14159.toFixed(2)); Returns a number
parseFloat(3.14159.toFixed(4)); Returns a number
3.14159.toFixed(2); Returns a string

The above Returns are produced by javascript code in each case.
Strings and Numbers may appear the same but you may
only perform calculations with Numbers and NOT with strings.




CDN Celebrations | New Years | Valentine's Day | St. Patrick's Day | Easter | Mother's Day | Father's Day | Canada Day | Thanksgiving | Halloween | Remembrance Day | Christmas


Animated Flags of the World

Flag of Canada Flag of Hungary with Coat of Arms Flag of the USA


 

ERRORS are inevitable. I have not verified every calculation but I made every effort to be accurate. Opinions are cheap; most people have thousands of them, many completely fact free.
Facts matter! If you find an error, please let me know, I will make the correction(s).

 


Today is: , and

 

maple-leaf bar divider

Silver Box at End of Driveway e-mail:   jimandgloria@yahoo.com

You Light Up My Life
As the World Turns





Return to Top of Page

Timelapse ISS Assembly Video

Video Tour Inside the ISS




Thank you for visiting us on the World Wide Web.
Copyright © 2000 - All rights reserved.
Design by Φ Unicorn JIF 2007 2008
All suggestions, Broken Links, Corrections and Recommendations must be submitted to WebMaster

   Send e-mail to:   WebMaster jimandgloria@yahoo.com