YamdaBlam!

Tag: first day in the month

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!

Leave a Comment :, , more...

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...