get month last and first day even leap year

0.44K views
no comments
11 Apr 2014 1:59 am

Get last day of month with php date.

echo date('t',strtotime('25-02-2016'));
//its return 29

echo date('t',strtotime('25-02-2015'));
//its return 28

echo date('t',strtotime('11-10-2015'));
//its return 30

Get Frist day of month.

echo date('D',strtotime('01-11-2013'));
//its return 01

NOTE:Your Email Address will be not shown and please do not add spamming comments because here is REL="NOFOLLOW" on your links and comments also moderated shown.
<code>Put html css or any language code under this tag</code>