PHP date issues

The browser displays the following dirty trick

, PHP 5: Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '6.0/no DST' instead in C:\SERVER\Apache\htdocs\phpstud\simple01.php on line 8

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '6.0/no DST' instead in C:\SERVER\Apache\htdocs\phpstud\simple01.php on line 8

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '6.0/no DST' instead in C:\SERVER\Apache\htdocs\phpstud\simple01.php on line 8
09-23-2011

The code is like this

<html>
<head>
<title>Web-</title>
</head>
<body>
   ,     PHP 5: 
<?php
$todaysdate = date("m", time()) . "-" . date("d", time()) . "-" . date("Y", time());
echo $todaysdate;
?>
</body>
</html>

Where is the error? It seems to me that something with the date in php may need to be configured.


Answer 1, authority 100%

Set timezone:

date_default_timezone_set("Europe/Moscow");

Answer 2, authority 50%

$todaysdate = date("d-m-Y", time());
echo $todaysdate; //  23-09-2011

About the letters, what they mean and what it is possible to use, look either in a book or on the Internet – there are a lot of letters of time and date. And you can change as you want, for example, like this: d/m/yor as you have m/d/Y, this is a month, day and year with four digits.
This variable will display the date that is now, if you want to format another date that is available, then you need to change time() to your variable.