I call: DateTime::createFromFormat('m/d/Y', '32/12/2016');
Result: 2018-08-12 23:28:30
I don't know why it return that result. Any help. Thanks
I call: DateTime::createFromFormat('m/d/Y', '32/12/2016');
Result: 2018-08-12 23:28:30
I don't know why it return that result. Any help. Thanks
You specified 32 months. 32 months is 2 years + 8 months, so it's using the 8th month and advancing the years by 2.