Jump to content

[SOLVED] display date of next friday


jeff5656

Recommended Posts

I want to display the date of next friday.  The following code does work:

 

<?php $next_friday = date('n/d/Y',strtotime('next friday')); ?>

 

BUT if today is friday I want it to display today's date.  Only on saturday do I want it to display next friday's date.

How do I do that and still assign it to the variable $next_friday?  Thanks

Link to comment
https://forums.phpfreaks.com/topic/116645-solved-display-date-of-next-friday/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.