Would like some help regarding PHP code
$note['zeitpunkt']): Contains string timestamps in format "yyyy-MM-dd HH:mm:ii"
Code part:
//adjust notes timestamp for file name to yyyy-MM-dd-HHmmii $timestamp = explode(" ", $note['zeitpunkt']); $clockTime = explode(":", $timestamp[1]); $fileTime = $timestamp[0] . '-'. $clockTime[0] . $clockTime[1] . $clockTime[2];
And another code part:
// format date to HH:mm:ii dd.MM.yyyy $timestamp = explode (" ", $note['zeitpunkt']); $date = explode("-",$timestamp[0]); array_reverse($date); $dateTime = $timestamp[1] . " " . $date[0] . "." . $date[1] . "." . $date[2];
I'd like to hear your opinion on this (no matter how late you might be x)): Is there a better way to achieve what I wrote in the comments above my code?












