YamdaBlam!

PHP – first day of the current month

by on Aug.20, 2010, under PHP

A really quick post mainly for myself, because I will need to remember this at some stage in the future

$startDate=date(“Y-m-d”, strtotime(date(‘m’).’/01/’.date(‘Y’).’ 00:00:00′));

Enjoy!

:, ,
No comments for this entry yet...

Leave a Reply

Powered by WP Hashcash

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

 

Archives

All entries, chronologically...