A non well formed numeric value encountered

2021. 3. 11. 09:52PHP

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
반응형

'PHP' 카테고리의 다른 글