Add Or Subtract Days Snippets


30 August, 2016   

Use INTERVAL to add or subtract days.

28 May, 2012   

How to add days to NSDate

17 July, 2014   

Find how many days there are between two given dates.

19 October, 2013   

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

18 February, 2011   

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.

05 March, 2017   

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

18 July, 2012   

HTML code to add a Favicon to your site

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...

10 September, 2011   

Example of adding a constraint

This code snippet populates a datagridview control using array objects.

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...

21 September, 2011   

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

13 June, 2011   

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