PHP date beginning of year

PHP date beginning of year


Posted in : PHP Posted on : February 8, 2011 at 11:40 AM Comments : [ 0 ]

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 :

Download Source Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics