getdate(): Day of the month
<?php $date_array = getdate(); foreach ( $date_array as $key => $val ){ print "$key = $val<br>"; } print "Today's date: $date_array[mday]"; ?>