This question already has an answer here:
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
</div>
This question already has an answer here:
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
</div>
收起
You specified 32 months. 32 months is 2 years + 8 months, so it's using the 8th month and advancing the years by 2.
报告相同问题?