In this tutorial you will learn how find PHP date beginning of year in a PHP web application.
PHP date beginning of year
In this tutorial you will learn how find PHP date beginning of year in a PHP web application. The code of "php-date-beginning-of-year.php" given below :
<?php
$currentDate = date("d-m-Y");
echo "Current date : ".$currentDate."<br>";
echo "Current date beginning of year :: ".$currentDate = date("Y-m-d");
?>
Output :
When run "php-date-beginning-of-year.php" display output as :


[ 0 ] Comments