Calculate date for Monday of current week
问题 Goal: If current day of week is any day other than Monday, display the date of the Monday of the current week. If the current day of the week is Monday, simply display today's date. ** This is what I wrote and I think it works but is probably not the cleanest way to determine the date. Having said that, does anyone see any reason why the code would be wrong or not work? ** <?php date_default_timezone_set("America/New_York"); $day = date("w"); if( $day == 1 ) {$day -= 0;} if( $day == 2 ) {$day