Thursday, November 19, 2009

PHP Date format in other language

To make php change data format dynamically base on the current language, use strftime() in combine with setlocale().
If local has not been installed, install it and restart Apache.
More info on http://php.net/manual/en/function.strftime.php

No comments: