Hi!
Can someone please let me know how to figure out the day (of the week e.g. Sunday, Monday, etc.) from a given date (e.g. 2005/09/20)?
I will very much appreciate it if someone can help me.
Thanks & regards,
Pradee.
Pradee, I think this will work:
<?php $date_string = "2005/09/20"; $basedate = strtotime($date_string); $date = date("l",$basedate); echo $date; // echoes: "Tuesday" ?>
Hi! Rodney,
Yes, it works!
Thanks a million! You have solved my problem in a few minutes, i really appreciate it.
Have a great day!
Best regards,