How to get first day of current month in php? -


what want 1st date of current month

here how last day of current month

date('d-m-y', strtotime('last day of month')) 

i've tried use this, didn't work me

date('d-m-y', strtotime('first day of month'))     

any idea how solve problem ?

date('01-m-y') should ;)


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -