a non well formed numeric value encountered

PHP
// when working with datetime php got below error, 
A non well formed numeric value encountered

// please add strtotime

// your code =>
date('H:i', '10:00');  // INCORRECT

//
date('H:i', strtotime('10:00'))); // CORRECT (add strtotime)



Source

Also in PHP: