Hi everyone, Iam trying to figure out how to display the correct time and date format in the following piece of code
$stmt = $conn->prepare("SELECT * FROM tbl ORDER BY id DESC");
$stmt->execute();
$total = $stmt->rowCount();
while ($row = $stmt->fetchObject()) {
//$opvar = $row['mchq_date'];
echo "
<tr>
<td>{$row->mchq_date}</td>
</tr>
";
At the moment the date and time is being displayed as 2017-09-03 10:45:20 - Whilst its readable, I would like it to be displayed something like,
Sunday September 3rd