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! Link to comment https://forums.phpfreaks.com/topic/166843-solved-date-breakdown/ 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)); ?> Link to comment https://forums.phpfreaks.com/topic/166843-solved-date-breakdown/#findComment-879750 Share on other sites More sharing options...
studgate Posted July 21, 2009 Author Share Posted July 21, 2009 thanks nbarone, that works! Link to comment https://forums.phpfreaks.com/topic/166843-solved-date-breakdown/#findComment-879782 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.