PHP
A non well formed numeric value encountered
September Choe
2021. 3. 11. 09:52
728x90
Because you are passing a string as the second argument to the date function, which should be an integer.
string date ( string $format [, int $timestamp = time() ] )
Try strtotime which will Parse about any English textual datetime description into a Unix timestamp (integer):
date("d", strtotime($_GET['start_date']));
728x90
반응형