DateTime :: createFromFormat返回错误的日期[重复]

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.