Welcome Guest, Not a member yet? Register   Sign In
how to get current year
#2

[eluser]Mirge[/eluser]
Code:
$year = date("Y"); // 2011
$shortYear = date("y"); // 11

$numericMonth = date("m"); // 01 through 12
$numericMonth2 = date("n"); // 1 through 12 (no leading zero)
$fullMonth = date("F"); // January through December
$shortMonth = date("M"); // Jan through Dec

See: http://us2.php.net/manual/en/function.date.php


Messages In This Thread
how to get current year - by El Forum - 07-15-2011, 08:39 AM
how to get current year - by El Forum - 07-15-2011, 08:53 AM
how to get current year - by El Forum - 07-15-2011, 09:38 AM
how to get current year - by El Forum - 07-15-2011, 09:41 AM
how to get current year - by El Forum - 07-15-2011, 09:50 AM
how to get current year - by El Forum - 07-15-2011, 09:51 AM
how to get current year - by El Forum - 07-15-2011, 11:11 AM
how to get current year - by El Forum - 07-15-2011, 11:13 AM
how to get current year - by El Forum - 08-04-2011, 09:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB