Level 73
In Laravel there is a library used to do this called Carbon, so just as simple as this:
Carbon\Carbon::parse('02/25/2020')->startOfMonth()->format('m/d/Y')
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
In Microsoft Access I can do this:
MyDate = !TransactionDate
MyNewDate = DateSerial(Year(MyDate), Month(MyDate), 1)
For example if MyDate is 02/25/2020, MyNewDate would be 02/01/2020
How would you do that using php? Thanks
Please or to participate in this conversation.