How to get current Date in php with Day/Month/Year format

How to echo Month/Day/Year in php using date method and show on screen  including current day name in website.

PHP date() function is used to get current date in web applications. This method is worked with different arguments and show date in day/month/year format. It can also access the current day name. So here is the complete step by step tutorial with different arguments of date method for How to get current Date in php with Month,Year,Day format.

android-project-download-code-button

How to get current Date in php with Month,Year,Day format.

Code for get-current-date.php file.

 <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>How to get current Date in php</title>
</head>

<body>

<?php
echo "Date of Today is : " . date("d/m/y") . "<br>";
echo "Date of Today is : " . date("d.m.y") . "<br>";
echo "Date of Today is : " . date("d-m-y") . "<br>";
echo "Day of Today is : " . date("l");
?>

</body>
</html>

Screenshot:

How to get current Date in php with Day/Month/Year format

Click here to download How to get current Date in php with Day/Month/Year format project file with source code.

Leave a Reply

Your email address will not be published. Required fields are marked *