Thanks a lot it worked. But when I do `date('d F Y', strtotime('08/10/2018'));` , it shows me 10 August 2018 instead of showing 08 October 2018? Why is that?
– mach2Aug 28 '18 at 19:13
strtotime uses american date notations i.e. mm/dd/yyyy when the input string is of the format **/**/****
– Ketan YekaleAug 28 '18 at 19:19
Now that you are experimenting with date formats, have a look at my answer:
https://stackoverflow.com/questions/52058697/date-formatting-in-php-for-string-with-am-and-pm/52059182#52059182 it shows how to use different date formats.
– Ketan YekaleAug 28 '18 at 19:27