German Date from array

<?php $weekday = array('Mo','Di','Mi','Do','Fr','Sa','So'); $weekdayCount = {$DATE|date_format:"%u"} - 1; // %u -> [1,7] 1 = Monday $weekday = $weekday[$weekdayCount]; echo $weekday;

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.