Online Forum To Support Coders With Technical Assistance - Read Write Execute

Last date of this month in php

Ankit Agrawal
Ankit Agrawal
Published on January 12, 2016 · 1 min read

$last_date_this_month =strtotime('last day of this month') ;

echo 'Last date of this month: '.$last = date('d/m/Y', $last_date_this_month);

Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article Full screen div at any screen and resolution Next Article → Shortcode not working in widget