I have a date in my php function like following:
2016-05-17 16:41:51
Is there some way for me to get the month name from this date in PHP ?
Using the F
in the date parameter you can get the month name.
echo date("F", strtotime('2016-05-17 16:41:51')); //May
More details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With