DST Calculations For Specific Date Information
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
 
CSGNetwork
Snippets
Calculators
Top Free Apps
Home
Back



Right click this window and select "view source" in order to copy the source for this script.

Specific Days Of The Week, Month and Year

With this calculator you can determine on what date a specific day of the week occurs, for instance the third Sunday of April on or after the 15th.
The calculator doesn't check the sanity of the input, so entering data should be done carefully. Current years are 4-digit numbers, not 2 digit numbers. The calculator only works for the Gregorian calendar, which is used in most parts of the Western world.

The second Monday of August on/after the 15th, etc.
Calculate the 1st, 2nd, 3rd, 4th, if existing the 5th, or the last weekday (like Monday, Saturday, etc.) of a certain month in a certain year.
If needed, enter an offset day after or before which the counting should start. The offset day is included in the counting if it is the selected weekday.
An offset day has no effect if the last weekday (of a month) is selected. If e.g. the last Sunday on/before day n is needed, select the first Sunday on/before day n. It is also possible to select before or after instead of on/before, on/after.

Required Data
Select the Nth: day: of month: year: day no. (of this month)
Results
Calculated Date (format: month-day-full year)


One of the applications of the calculator presented above, is figuring out on which date a daylight saving transition (winter time <-> summer time) occurs. Worldwide there are many different DST (daylight saving time) rules in effect. Below an example of two DST rules, calculated with the same functions that form the basis of the calculator above.

Date And Time Of DST
Required Entry
Year
Results
RegionDate (mm-dd-yyyy)Local Time
Europe (zone CET)Start 02:00
End 03:00
United States
Before 2007 Rules
Start 02:00
End 02:00
United States
With 2007 Rules
Start 02:00
End 02:00


DST Calculations For Specific Date Information

Some non-ECMAScipt compliant browsers will give an error on loading but will generally recover for correct operation. This calculator provides the ability to find the Nth occurance of a day during a year. It is VITAL for the correct ability to find DST information worldwide. View the source code.



Bookmark and Share
Registered® Trademark™ and CopyrightŠ 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved