I am very new to PHP(5.x) and MySQL ,
I am getting some information from MySQL in my PhP app. Which includes Dates.
I have a full date like 01.01.2016 09:30 . How can I show this in my View(HTML) Table as January 2016
?
I am displaying it now like that
foreach($data as $d) {
echo "<tr>";
echo "<td style='white-space: nowrap'>".$d["DatumVon"]."h</td>";
echo "<td style='white-space: nowrap'>".$d["DatumBis"]."h</td>";
echo "<td>".$d["dauerStunden"]."</td>";
echo "</tr>";
}
The date format I show is dd.mm.yyyy but the data is stored on the database as a TIMESTAMP