View Single Post
Old 06-23-2009, 09:06 PM   #11 (permalink)
nefus
The Contributor
 
nefus's Avatar
 
Join Date: Nov 2007
Location: Nashville, TN
Posts: 66
Thanks: 20
nefus is on a distinguished road
Default losing my mind

I can't see where I am screwing this up...

Code:
echo "06/27/2009 converts to: ". strtotime("06/27/2009"), "\n";

$send_date	=	date('m/d/Y');

$send_date2	=	strtotime($send_date);

$send_date3	=	date("m/d/Y", strtotime($send_date2));
Returns this:

Code:
06/27/2009 converts to: 1246078800
send1: 06/23/2009
send2: 1245733200
send3: 12/31/1969
Where am I messing this up?? Why is strtotime not converting correctly?
__________________
I am not a programmer, nor do I play one on tv.
nefus is offline  
Reply With Quote