I'm just a beginner in PHP. Can anyone help me on how to change the date and time format? Recently, it will appear like this
date: YYYY/mm/dd time: HH:ii:ss
but what I want is like this:
date: dd/mm/YY time: g:i: A
below is my current code:
$mail->Body = '<h3>Dear staff, </h3>
<p>Your meeting room booking details are as follows:</p>
<p>Date : <b>'.$date = $_POST['date'].'</b></p>
<p>Time : <b>'.$timeFrom = $_POST['timeFrom'].' to '.$timeTo = $_POST['timeTo'].'</b></p>';
Can someone help me?