Format time with strftime():
<?php print strftime('%A %b %e: day %j of %Y'); ?>
Output
Friday Jul 17: day 198 of 2026
Find dates with strtotime():
<?php $t = strtotime('now + 3 weeks');
    print strftime('%c',$t); ?>
Output
Fri Aug 7 13:01:36 2026