hip1/14.4.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php setlocale (LC_ALL, 'nld_NLD'); include('db.php'); $format = "%d-%m-%Y"; $query = "select max(geb_datum) as maximum from leerlingen"; $result = mysqli_query($db, $query) or die(mysqli_error($db)); $row = mysqli_fetch_array($result); echo converttime($format, $row['maximum']); function converttime($format, $date){ return strftime($format, strtotime($date)); } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse