This tutorial shows an example how to get first day of the week and in another query we are executing to get last day of the week in month using PHP function method.

// To Get First day of week of current month in PHP
echo $first_week_day = date("Y-m-d", strtotime(date("Y").'W'.date('W')."0"));

// To Get Last day  of week of current month in PHP
echo $last_week_day = date("Y-m-d", strtotime(date("Y").'W'.date('W')."7"));

 
If you face any problem writing and coding this date function then contact me from Contact Form and along with that if any body has question about SEO or Adsense or Blogging.

Thanks,

0 comments :

Post a Comment

 
# Top