JSHINER Posted March 23, 2007 Share Posted March 23, 2007 When I use the following: echo date("F j, Y",$i); It displays as December 31, 1969 When I do: echo "$i"; It displays correctly: 2007-03-23, or whatever the date imputted was. I have dates stored in my database as DATE format (0000-00-00) - But I want them to display as March 25, 2007. What am I doing wrong here ? Quote Link to comment Share on other sites More sharing options...
mjlogan Posted March 23, 2007 Share Posted March 23, 2007 echo date("F j, Y",strtotime($i)); Quote Link to comment Share on other sites More sharing options...
JSHINER Posted March 23, 2007 Author Share Posted March 23, 2007 Thanks ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.