Format time with strftime():
<?php print strftime('%A %b %e: day %j of %Y'); ?>
Output
Friday Jun 26: day 177 of 2026
Find dates with strtotime():
<?php $t = strtotime('now + 3 weeks');
    print strftime('%c',$t); ?>
Output
Fri Jul 17 23:19:32 2026