studgate Posted July 21, 2009 Share Posted July 21, 2009 Hey guys, i have a simple little problems. I am trying to breakdown a date(timestamp) into month name (Jan, Feb), month (01, 02), Day (01...31), and year. I have been trying and I have not have much success so I come to the best place with the best people for some help . The date on the database is stored as (dateexecuted), I want to get the date and break it down. Thanks in advance guys! Quote Link to comment Share on other sites More sharing options...
nbarone Posted July 21, 2009 Share Posted July 21, 2009 <?php $month_str = date("M",strtotime($date_from_db)); $month_int = date("m",strtotime($date_from_db)); $day = date("d",strtotime($date_from_db)); ?> Quote Link to comment Share on other sites More sharing options...
studgate Posted July 21, 2009 Author Share Posted July 21, 2009 thanks nbarone, that works! 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.