Calculate Days Snippets

19 October, 2013   

Mysql code shows how to calculate last 7 days

PHP code to calculate the difference between two dates

17 July, 2014   

Find how many days there are between two given dates.

This function returns the duration of the given time period in days, hours, minutes and seconds. For example: echo convertSecToStr('654321'); would return "7 days, 13 hours, 45 minutes, 21 seconds"

MySQL code example to calculate age from Date Of Birth

28 May, 2012   

How to add days to NSDate

30 August, 2016   

Use INTERVAL to add or subtract days.

JavaScript code to get time intervals between two Dates

Change Graphics Based on Season

18 February, 2011   

Change Graphics Based on Season

This is a PHP Class that calculates the size, number of files & folders of a specific directory.

How to calculate distance between Mouse and Element

Scripts used to calculate Daylight Saving Time (DST) for the US and EU. Valid for years 1900 to 2099. [DST wasn't adopted until the 1950s-1960s for US and 1990s for the EU] By: brad degrandis

23 August, 2014   

Correctly calculate the date of Easter Sunday.

28 January, 2011   

The days of 800x600 screens are all but over, but most of us still try to accommodate 1024px wide screens. Hence the popularity of "960" width sites. This bookmarklet will resize the current browser window to that width and height. You know, so us web designers with giant monitors can see what it's like to be slummin' with a 1024...

14 February, 2011   

Build a Calendar Table

13 November, 2014   

Here is a form that asks for Name and Email address. When the form is submitted the Email address is verified first. If you put in a Name and a correct Email address, an anchor element is displayed allowing the user to download the file, two cookies are created storing the Name and Email address. If the user goes BACK in the browser and tries...

24 July, 2014   

Calculate distance between two zip codes or postal codes.

26 December, 2011   

Allows for the creation of calendars in HTML pages

Demonstrates to select all the Birthdays that will occur as of today, 15 days