added some methods to convert dates and timestamps in american format into the german format!

main
hecht 13 years ago
parent cbd536d7be
commit 8fc80d7ec2

@ -317,4 +317,18 @@ function validateURL($url){
} }
} }
function formatDate($dateString) {
return preg_replace('#([\d]+?)-([\d]+?)-([\d]+?)#', '\3.\2.\1', $dateString);
}
function formatTime($timeString) {
// Not yet required!
return $imeString;
}
function formatTimestamp($timestampString) {
return preg_replace('#([\d]+?)-([\d]+?)-([\d]+?) ([\d:]+?)#', '\3.\2.\1 \4', $dateString);
}
?> ?>

Loading…
Cancel
Save