date and time

Force WordPress to use Italian date

To get date with get_the_time in Italian you should specify italian (it_IT) in the WP_LANG constamt in your wp_config.php file.…

November 21, 2014

PHP how to calculate age from date of birth

This is a very simple script that starts from a string date in format yyyy-mm-dd and return the age. To…

February 10, 2010

PHP Day add function

How to add 2 days to a date in PHP? There are many ways to add days to a string…

November 11, 2009