[PHP-WIN] Re: Date / time things...

2001-08-09 Thread Hugh Bothwell
"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

[PHP-WIN] RE: Date + Time

2001-01-25 Thread Simon Willison
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