Home / Knowledgebase Home / Create a PHP file to display the date & time

// View Comments //

Create a PHP file to display the date & time

To display the current server configured date and time on your web hosting account, you can place the following code listed below into a php file.

<?php echo date(“l jS \of F Y h:i:s A”); ?>

The above code will display the current date as configured in the format of:

  • Day of the week
  • Day of the month
  • Month
  • Year
  • Time
  • AM/PM

 


If you have any web hosting questions please feel free to reach out to us. We're happy to help.

Shared Hosting | Reseller Hosting | Managed WordPress Hosting | Fully Managed VPS Hosting

Our Guiding Principles

Subscribe to comment notifications
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments