"Ventsyslav Vassilev" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anybody has an algorithm, which takes 2 different dates (in format
> -xx-xx xx:xx:xx and date1 and returns the difference as:
> "The requested period consists of X years, X months, X
You can use PHP's date function to do this - information here:
http://www.php.net/date
In your case the function would be...
$yourdate = date("d") . (date("w") + 1) . date("mY");
I'm pretty sure that will work - I had to use a messy construct because the
"w" element of the date function returns