Calculate Date Snippets


17 July, 2014   

Find how many days there are between two given dates.

11 November, 2013   

These are two JavaScript functions that should of course be properly called on "onkeyup" event in the appropriate fields.

23 September, 2011   

An example Dates with the Ordinal Suffix . Below is the code that will do this.

13 June, 2011   

This C# code snippet calculates a Fibonacci number using recursion, i.e., the Fibonacci method calls itself when necessary.

This example has an ordinal suffix: Sunday 15th July

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

15 December, 2012   

Allows you monitor how many times a link/image/banner is clicked.

30 August, 2011   

Calculates the total size of a MySQL database in KB/MB or GB...

13 June, 2013   

Allows you yo monitor how many times a link/image/banner is clicked, also allows you to diguise affiliate links. Consists of 1 small PHP file and is very easy to use.

Calculate the more near point belonging to a given segment.

Have you ever wanted to know how much memory one of your PHP scripts uses when it runs? You might want this information if your script has a memory leak or takes a long time to execute. If that's the case then there's a great built-in function called memory_get_usage, which will display the exact amount of memory being used by your script. This...

An example MYSQL function

13 October, 2012   

Code example to show current date and time

The Gmail Bookmarklet will add a unique string to the email signature to prevent Gmail from trimming the content.

05 July, 2012   

Converts a date or time from one timezone to another.

10 October, 2012   

Converts a date or time from one timezone to another.

09 July, 2012   

Place the following JavaScript code within the <BODY> of your web page.

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

Jave code for PDF Generation using iText JAR