phpCopy<?php $DateAndTime = date('m-d-Y h:i:s a', time()); echo "The current date and time are $DateAndTime."; ?>