Mega Code Archive

 
Categories / Php / Date Time
 

Finding days of the week, month, and year

<?php print strftime("Today is day %d of the month and %j of the year."); print 'Today is day '.date('d').' of the month and '.date('z').' of the year.'; ?>