Php Date Code Snippets


06 June, 2012   

This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP.

By default, Delphi gets its date/time, currency and numeric format from Control Panel's International settings. We can set the constants defined in Delphi, like DecimalSeparator, ShortDateFormat and others like in the code below. To a complete list of these variables, look at Currency and date/time formatting variables in Delphi Help.

20 February, 2012   

SQL select query to show records with specify date in where clause

MySQL code example to calculate age from Date Of Birth

09 October, 2011   

Example shows how to get the database date and time.

31 December, 2011   

How to create a procedure for date calculation

26 February, 2011   

Here shown how to highlight syntax

27 October, 2011   

An example to include another PHP file into a PHP script

27 May, 2013   

Example shows here how to compress CSS with PHP

29 October, 2011   

Here shown an example how to Compress CSS with PHP

JavaScript code to get time intervals between two Dates

22 November, 2011   

JavaScript Code to display Dynamic Date

16 November, 2013   

This function lets you check whether an date event should recur on a specified date. This is handy for calendar, billing and reminder applications.

26 May, 2012   

Allows to perform PHP redirection (must be placed before any browser output).

14 February, 2011   

You'll need a of copy Simple Pie for the include right at the top here.

19 October, 2011   

An example to display Dynamic Date

20 February, 2012   

SQL select query with between date to show records in where clause

13 November, 2011   

How to find records with last date of month

04 October, 2012   

Turn a string into a readable url

29 July, 2015   

Apache code example shows how to remove .php from URL