DJTim666 Posted September 17, 2009 Share Posted September 17, 2009 Am I stupid, or what? <?php $date = date("d", $status['created'])==date("d", time())?"Today at ".date("h:i:s A"):(date("d", $status['created'])+1)==date("d", time())?"Yesterday at ".date("h:i:s A", $status['created']):date("d/m/y h:i:s A", $status['created']); ?> It won't say anything but "Yesterday at [date here]". Even though the status its going over was created today. PLEASE HELP!!! Quote Link to comment https://forums.phpfreaks.com/topic/174620-solved-date-problem/ Share on other sites More sharing options...
DJTim666 Posted September 18, 2009 Author Share Posted September 18, 2009 Anyone see a problem? Quote Link to comment https://forums.phpfreaks.com/topic/174620-solved-date-problem/#findComment-920454 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.