Archiv verlassen und diese Seite im Standarddesign anzeigen : Aktuelles Datum?
Es gibt ja die Möglichkeit, die aktuelle Zeit durch die Variable
$timenow
sich anzeigen zu lassen.
Gibt es die gleiche Möglichkeit auch für das Datum (ohne die Uhrzeit) ??
Gruss,
Chris.
Ist zwar sehr alt das Thema dennoch aktuell!
$timenow = Uhrzeit doch was steht für Datum ??
$datenow
:rolleyes: hätte ja selbst drauf kommen können danke ;)
weiß du eventuell den code vom Wochentag?
http://de3.php.net/date
Dadurch siehst du, das du die Variable l brauchst => vbdate('l',TIMENOW,false,false);
// #############################################################################
/**
* Formats a UNIX timestamp into a human-readable string according to vBulletin prefs
*
* Note: Ifvbdate() is called with a date format other than than one in $vbulletin->options[],
* set $locale to false unless you dynamically set the date() and strftime() formats in the vbdate() call.
*
* @param string Date format string (same syntax as PHP's date() function)
* @param integer Unix time stamp
* @param boolean If true, attempt to show strings like "Yesterday, 12pm" instead of full date string
* @param boolean If true, and user has a language locale, use strftime() to generate language specific dates
* @param boolean If true, don't adjust time to user's adjusted time .. (think gmdate instead of date!)
* @param boolean If true, uses gmstrftime() and gmdate() instead of strftime() and date()
* @param array If set, use specified info instead of $vbulletin->userinfo
*
* @return string Formatted date string
*/
function vbdate($format, $timestamp = TIMENOW, $doyestoday = false, $locale = true, $adjust = true, $gmdate = false, $userinfo = '')
http://de3.php.net/date
Dadurch siehst du, das du die Variable l brauchst => vbdate('l',TIMENOW,false,false);
Danke !!
Powered by vBulletin® Version 4.1.12 Copyright ©2012 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.