Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
hmm der komplette string müsste ja umgedreht werden .. gibts nicht eine funktion die das direkt umwandelt in us schreibweise?
function germanDateTimeToMysqlDateTime( $date, $time = "" ) {
if( $time == "" && preg_match('/^(31|30|[012]\d|\d)[.](0\d|1[012]|\d)[.](\d{4}|\d\d) ([01]?\d|2[0-3]):([0-5]?\d)([:]([0-5]?\d))?$/',$date) ) {
$array = explode(" ",$date);
$date = explode(".",$array[0]);
$realDate = $date[2]."-".$date[1]."-".$date[0];
if( $this->withTime ) {
$realDate .= " ".$array[1];
}
return $realDate;
} else
if( $time != "" && preg_match('/^(31|30|[012]\d|\d)[.](0\d|1[012]|\d)[.](\d{4}|\d\d)$/',$date) && preg_match('/^[0-2][0-9]:[0-5][0-9]$/',$time) ) {
$array = explode(".",$date);
return $array[2].'-'.$array[1].'-'.$array[0]." ".$time;
} else
if( $time == "" && preg_match('/^(31|30|[012]\d|\d)[.](0\d|1[012]|\d)[.](\d{4}|\d\d)$/',$date) ) {
$array = explode(".",$date);
return $array[2].'-'.$array[1].'-'.$array[0];
} else {
return false;
}
}
$exploded = explode(".",$zeitraumbis);
$zeitraumbis = $exploded[2]."-".$exploded[1]."-".$exploded[0];