Php Date Code Snippets

Handy helper function which parses about any date and returns the same date in MySQL date/time format.

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

26 December, 2011   

Example PHP code to navigate calender in HTML pages

06 May, 2013   

Code example for Month Day Year Dropdown

03 November, 2011   

Here are some simple examples of using the functions with your variables. Run these from any ".asp" page and watch what happens

PHP code to convert MySQL date to UNIX timestamp

15 February, 2012   

PHP code to displaying the current date in an HTML page.

18 February, 2011   

Change Graphics Based on Season

07 February, 2011   

Automatic Copyright Year

PHP code for current Month/Day/Date with HTML colors & formatting.

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

Change Graphics Based on Season

19 December, 2012   

How to convert a java util Date into a sql Date for use in databases.

19 December, 2012   

Example shown here how to convert String to Date in Java

15 December, 2012   

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

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.

26 December, 2012   

This cron will do the same on Windows as session management works on Linux

19 October, 2011   

An example to check Weekend

23 January, 2013   

Returns the number of the quarter containing a given date.

17 July, 2014   

Find how many days there are between two given dates.