date question

From: Date: Mon, 11 Aug 2003 15:50:28 +0000
Subject: date question
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-21118@lists.php.net to get a copy of this message
I use the below sql statement to add one day to the date select DATEADD(day,1,'2003-08-11 23:59:59') as datered It returns $expir="Aug 12 2003 11:59PM" To convert the format to YYYY-MM-DD I use $expir=date('Y-m-d', $expir); The new value returned is 1969-12-31. What am i doing wrong. The only thing I want to do is convert my date to a YYYY-MM-DD format. Please help. Thanks, Harpreet

« previous php.windows (#21118) next »