19Dec/110
First and last day of the month in PHP
I've been working with dates today and i've found a pretty neat snippet to show the first and the last day of the month using php
$firstDoM = date("Y-m-01"); //01 -> first day of month
$lastDoM = date("Y-m-t"); //t -> last day of month