Format time with strftime():
<?php print strftime('%A %b %e: day %j of %Y'); ?>
Output
Wednesday Sep 16: day 259 of 2026
Find dates with strtotime():
<?php $t = strtotime('now + 3 weeks');
    print strftime('%c',$t); ?>
Output
Wed Oct 7 01:45:32 2026