Count Days Snippets

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"

13 July, 2011   

This example uses count to count the number of times 0 appears among v1-v3 (putting it in z1) and likewise for v4-v6 (putting the count in z2). Then, if z1 is 3, then 9999 is placed in v1-v3 using a do repeat loop. The same is done for v4-v6.

PHP code to calculate the difference between two dates

28 May, 2012   

How to add days to NSDate

30 August, 2016   

Use INTERVAL to add or subtract days.

MySQL code to find all duplicates in a database column(s)n.

JavaScript code to get time intervals between two Dates

Change Graphics Based on Season

18 February, 2011   

Change Graphics Based on Season

Portable code to count the number of bits

18 January, 2012   

You can combine with SQL JOIN clause to show department name with count.

05 February, 2014   

We created a slide show that allowed the user to move through an array of images.

Maxscript UI & Graphical RPManager - Control multiple object properties with single object for

03 August, 2011   

By the below template we can make for-loop using xslt.

This MATLAB code snippet reads in a file stored in the current directory and stores specified lines from the file in a new cell array for manipulation in MATLAB.

16 June, 2012   

You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will allow the page to redirect and the visitors will not need to click a link or type in the new URL.

12 January, 2012   

Here shown a php code example how to associative Array by Column Name

19 April, 2015   

Merges two strings in a way that a pattern like ABABAB will be the result.