PHP date beginning of day

PHP date beginning of day


Posted in : PHP Posted on : February 8, 2011 at 11:44 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 day

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-day.php" given below :

<?php
$currentDate = date("Y-m-d");
echo "Current date : ".$currentDate."<br>";
echo "Current date beginning of day :: ".$currentDate = date("d/m/Y");
?>

Output :

When run "php-date-beginning-of-day.php" display output as :

Download Source Code

Go to Topic «PreviousHomeNext»

Your Comment:


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

 
Tutorial Topics