shortysbest Posted November 27, 2010 Share Posted November 27, 2010 right now i have my date system to say "X amount of seconds ago, X hours ago, X days ago, X years ago, How could i turn mktime() (1290874161) into a mm/dd/yyyy format? so it would say like, "Nov 27, 2010 at Hour:Minute" (whatever the hour/minute is) Link to comment https://forums.phpfreaks.com/topic/220002-turning-mktime-into-monthdayyear/ Share on other sites More sharing options...
Pikachu2000 Posted November 27, 2010 Share Posted November 27, 2010 You don't need mktime to do that. echo date('M d, Y \a\t H:i:s a', 1290874161); Link to comment https://forums.phpfreaks.com/topic/220002-turning-mktime-into-monthdayyear/#findComment-1140329 Share on other sites More sharing options...
shortysbest Posted November 27, 2010 Author Share Posted November 27, 2010 oh thats it, thanks. Link to comment https://forums.phpfreaks.com/topic/220002-turning-mktime-into-monthdayyear/#findComment-1140332 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.