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
  • Email, SSL
  • 0 Χρήστες που βρήκαν αυτό χρήσιμο
Ήταν χρήσιμη αυτήν την απάντηση;