My Science Is Better

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
Tagged as: Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.

Tag Cloud

Categories

Archives

Akismet

Blogroll

Ads