i have string like below "June 1, 2012"
. i need to find day for the above string.
this value return from wordpress postdate() function.
how can i do this in php?
Can't you parse the date with strtotime
?
If so, you can do it like this:
<?php
date('l', strtotime('June 1, 2012'));
?>
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