I have facing trouble to print date and month,I need to print January-2016 not Jan-2016.
I have tried <? echo date("Y-M");?>
Please suggest.
I have facing trouble to print date and month,I need to print January-2016 not Jan-2016.
I have tried <? echo date("Y-M");?>
Please suggest.
Try this for full month name
<?php echo date("F-Y"); ?> //January-2016
For January-2006
echo date('F-Y');
For 2006-January
echo date("Y-F");
Y = year in digits
F = full month text