Simple PHP Date Function
PHP has a function date where you can specify different ways on how to display the date. How do you generate current date and display only month and date like ‘September 2010′. Here is a simple php howto,
function curDate() {return date("Y-m-d",mktime(date("h")+8, date("i"), date("s"), date("m") , date("d"), date("Y")));}$now = substr(curDate(),0,7);echo date("F Y", strtotime($now));?>
The code above will simply output September 2010, a simple code that will surely help you especially when coding PHP from scratch.
Did find the post very useful? Maybe you want to buy me a glass of beer!
Source: paparts
Hire PHP Programmer Hire a PHP coder from vast our pool of experienced PHP coders. Quality Web Programming has a team of experienced and talented PHP developers. You can hire a PHP programmer from our company on daily, monthly or hourly basis.
Website Design company Quality Web Solutions (India), A Website design and development company provides quality website design services and web design solutions at affordable rates.
