Date to day conversion in php
php
Solution
First, you need to parse the string '06/22/2009' into a timestamp, possibly using `strtotime()`:
$dt = strtotime('06/22/2009');
Then, you can format the timestamp using `date()`:
$day = date("D", $dt);
If you especially want it in uppercase, use `strtoupper()`:
print strtoupper($day);
Problem
in my webpage i need to calculate the day[ie. SUN,MON,TUE...] from the date .. The date is in ['06/22/2009'] this format ? How can i calculate it in to day[That is it will show me MON] in php . Please help me to find out . Thanks in advance..