Use INTERVAL to add or subtract days.
How to add days to NSDate
Find how many days there are between two given dates.
Mysql code shows how to calculate last 7 days
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"
PHP code to calculate the difference between two dates
JavaScript code to get time intervals between two Dates
Change Graphics Based on Season
Change Graphics Based on Season
This snippet shows how to add treenode's to a treeview control. It also shows how to add sub nodes.
To add a "space" to the dock in OS X, open up Terminal.app and enter this. Enter it as many times as you want spaces. Error on too many, they are easy to remove. by Chris Coyier
HTML code to add a Favicon to your site
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...
Example of adding a constraint
This code snippet populates a datagridview control using array objects.
Build a Calendar Table
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...
Allows you to add a string to end or start of a field to use when comparing or selecting data. The second argument is added to the end of the first
Providing your visitors with a way to add your web site to their favorite places provides a great way to obtain repeat traffic. This is a great way to increase your overall traffic and sales, as they can visit your web site again and again. However, to obtain repeat traffic, you must continually update your content and give your visitors a...
Example for adding filter column to FilterControl, Devexpress controls