Use the following code if you want to display Current Date and Time.
Simply copy the code in text file & save as .php file in the server. Change “Asia/Kuala_Lumpur” to your timezone.
<?php date_default_timezone_set('Asia/Kuala_Lumpur'); $current_date = date('d-m-Y : H:i:s'); echo $current_date; ?>