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 Quote Link to comment 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>"; Quote Link to comment 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" Quote Link to comment 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')); 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.