Next Higher Month Day Snippets

Change Date from dd/mm/yyyy to yyyy-dd-mm

Open up a text editor, copy & paste the code below. Save the file as: "" and exit the editor.

30 August, 2016   

Use INTERVAL to add or subtract days.

Of course, this must be encapsulated and taken to a much higher abstraction level (something like wshGetSpecialFolder [folderName] and wshCreateLink args...)

12 July, 2014   

This block finds all employees whose monthly wages (salary plus commission) are higher than $2000.

03 May, 2012   

MYSQL code example for calculation of Easter Day This code taken from

An example MYSQL function

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

Select all the Birthdays that will occur as of today, 15 days

This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match.

30 April, 2011   

Countdown to the start of Summer in the Northern Hemisphere: June 21, 2011; 1:16 PM Eastern Daylight Time (EDT)

JavaScript code to get time intervals between two Dates

23 August, 2014   

Correctly calculate the date of Easter Sunday.

19 October, 2013   

Mysql code shows how to calculate last 7 days

29 July, 2013   

Update random dates in MYSQL table

22 December, 2012   

How to update random dates in MYSQL table

19 October, 2011   

An example to check Weekend

26 December, 2011   

Example PHP code to navigate calender in HTML pages

Use this in the <head> of your HTML files.

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"