Getting a date in number form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need to get the month in a number format; July =7.  Right now it is returning the string: July.

This is what I am doing.

$today = getdate(); 
$month = $today['month']; 
$mday = $today['mday']; 
$year = $today['year']; 

What can I do to get the number instead of the word?

- Rick

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux