Get First and last date of month in php

by Mohan 2014-05-31 16:23:27

Php snippet to get current month's first date and last date using php

$first_day_month = date('m-01-Y'); 

$last_day_month  = date('m-t-Y');

echo "First day of this month :".$first_day_month;

echo "Last day of this month :".$last_day_month

Tagged in:

767
like
0
dislike
0
mail
flag

You must LOGIN to add comments