Mundo Posted March 6, 2009 Share Posted March 6, 2009 I'm using $_GET['date'] which gets my date as something such as "2009-03-10". I want to transform this to something like "F jS". I tried echo date("F jS", $_GET['date']); but it always returns 1st Janurary. Can anybody help? Link to comment https://forums.phpfreaks.com/topic/148266-solved-transforming-date/ Share on other sites More sharing options...
Mark Baker Posted March 6, 2009 Share Posted March 6, 2009 echo date("F jS", strtotime($_GET['date'])); Link to comment https://forums.phpfreaks.com/topic/148266-solved-transforming-date/#findComment-778372 Share on other sites More sharing options...
Mundo Posted March 6, 2009 Author Share Posted March 6, 2009 Brilliant! Thanks for quick reply! Link to comment https://forums.phpfreaks.com/topic/148266-solved-transforming-date/#findComment-778376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.