Hi, my name is David Carr and I'm a PHP Developer.

Blog Archives Categories Authors About Me Open Source Books Contact Me

Sponsor Me

Help support the blog so that I can continue creating new content!

My Latest Book

Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Laravel Framework | PHP & MySQL | Tutorials

David Carr

Get the last day of the month from a date

To get the last day of the month use date('t'):

$dueDate = date('t/m/Y', strtotime($row->created_at));

or with Carbon (Laravel example)



Copyright © 2009 - 2022 David Carr. All code MIT license. All rights reserved.