How to insert datetime in sql query

You missed the cross-post

i.e. now sans PHP

Thanks guys! Appreciate it!

sorry, this is not true

you can use ‘2018-05-18’ or ‘2018$05$18’ or ‘18/05/18’ or even integers like 20180518

see https://dev.mysql.com/doc/refman/5.5/en/date-and-time-literals.html

1 Like

I didn’t know that. Thanks for pointing that out :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.