php/Mysql query with inserting date fails

前端 未结 3 1523
情深已故
情深已故 2021-01-22 07:50

I have been searching for quite a while now and I can\'t figure out why my query isn\'t working for dates.

I want it to be imported to my database as a Date, this is a c

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-22 08:22

    after date is inserted you can format after query $new_format=date('h:i:s d/m/Y',strtotime($date_string));

提交回复
热议问题