Script to display the first and last date of the current month
// Get the first date of the current month
$firstDate = date(“Y-m-01”);
// Get the last date of the current month
$lastDate = date(“Y-m-t”);
// Output the result
echo “First Date of the Current Month: ” . $firstDate;
echo “Last Date of the Current Month: ” . $lastDate;
Please login to post a comment.