I am unable to update mysql date
trying ,
mysql is remaining 0000-00-00 when inserting date format date('d-m-Y')
thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use this instead:
Also, if you just want to use the current time/date and your MySQL server is in the same timezone as your web server, you can use
NOW()in your SQL instead.