I have a variable $date containing the date such as "12 2,2016" and i want to convert this date into following format. February 12,2016. how is this possible in php ?
Asked
Active
Viewed 69 times
0
-
2How many seconds of research have you done on this? – Rasclatt Mar 05 '16 at 04:37
-
– Amranur Rahman Nov 20 '20 at 08:23
2 Answers
0
$date=date_create("2016-02-12");
echo date_format($date,"M d, y");
result: Feb 12, 2016

jayaprakash
- 21
- 3