0

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

tungserver
  • 31
  • 3

1 Answers1

0

You specified 32 months. 32 months is 2 years + 8 months, so it's using the 8th month and advancing the years by 2.

Devon Bessemer
  • 34,461
  • 9
  • 69
  • 95