- Forums
- Tutorial And Guides
- How To Get Todays Date Using date() Function In PHP
This Page Contains information about How To Get Todays Date Using date() Function In PHP By wallpaperama in category Tutorial And Guides with 2 Replies. [1484], Last Updated: Sat May 18, 2024
wallpaperama
Mon Jan 05, 2009
2 Comments
14064 Visits
date('M,d,Y')
if you want to know how to display the current date its easy with php. all you have to do is use the date() function, here is an example:
PHP CODE:
<?
echo date('M,d,Y');
?>
the output will look like this:
OUTPUT:
Jan,05,2009
try it, open your text editor like notepad then copy and paste the php code from above and save it as date.php and upload to your site then open it with your broswer and you will see today's date