[PHP] Newbie Date question
If: $today = date(Y-m-d); Then how to I get: $yesterday = ? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie Date question
On Monday 15 July 2002 00:01, RoyW wrote: If: $today = date(Y-m-d); Then how to I get: $yesterday = ? Use strtotime() followed by date(). Details in manual. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I went to a Grateful Dead Concert and they played for SEVEN hours. Great song. -- Fred Reuss */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Newbie Date Question
Hey Guys and Girls, I'm selecting a datetime value from SQL Server. In the database the data looks like: 2001-11-16 18:33:56 When I print out the results on the page I get this: 1005958764 This is how I'm displaying the data: while(!$rs-EOF) { print(trtdfont class=smallText . $dtmDate-value . /font/tdtd $rs-MoveNext(); } I'm obviously missing something here Any suggestions would be appreciated. Dave % David Mitchell [EMAIL PROTECTED] www.IceRadio.ca % -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]