a non well formed numeric value encountered

Solutions on MaxInterview for a non well formed numeric value encountered by the best coders in the world

showing results for - "a non well formed numeric value encountered"
Martín
17 Nov 2016
1// when working with datetime php got below error, 
2A non well formed numeric value encountered
3
4// please add strtotime
5
6// your code =>
7date('H:i', '10:00');  // INCORRECT
8
9//
10date('H:i', strtotime('10:00'))); // CORRECT (add strtotime)
11
12
13