phpretard Posted May 29, 2008 Share Posted May 29, 2008 date('M-d-Y'); = May-29-2008 Is there a simple way to format it like this: MAY-29-2008 I need the month to be capitalized without the use of CSS -Thanks Link to comment https://forums.phpfreaks.com/topic/107820-uppercase-date/ Share on other sites More sharing options...
Schlo_50 Posted May 29, 2008 Share Posted May 29, 2008 $upper_date = "<strong> ".date('M-d-Y')."</strong>"; Link to comment https://forums.phpfreaks.com/topic/107820-uppercase-date/#findComment-552726 Share on other sites More sharing options...
phpretard Posted May 29, 2008 Author Share Posted May 29, 2008 Thank you, but... That makes it bold. I need "MAY" not "May" Link to comment https://forums.phpfreaks.com/topic/107820-uppercase-date/#findComment-552745 Share on other sites More sharing options...
GingerRobot Posted May 29, 2008 Share Posted May 29, 2008 strtoupper is your friend: echo strtoupper(date('M-d-Y')); Link to comment https://forums.phpfreaks.com/topic/107820-uppercase-date/#findComment-552810 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.