Floodster
Technical User
- Jan 28, 2005
- 204
I'm having a problem inserting a date into my table in MySql. I had no problem when I used Access.
My code is;
When i run this I get the error "Incorrect datetime value :'16/05/2006' for column 'user_login' at row 1". Now I know this has got to be the way the date is being fomratted because when I view the table in MySql the date is formatted '2006-02-05 11:10:01'.
I've tried to GOOGLE this but have not found a specific answer.
Any ideas??
Thanks.
My code is;
Code:
INSERT into tbl_LOGIN (user_id, user_Logname, user_login) VALUES (1,'test', now());
When i run this I get the error "Incorrect datetime value :'16/05/2006' for column 'user_login' at row 1". Now I know this has got to be the way the date is being fomratted because when I view the table in MySql the date is formatted '2006-02-05 11:10:01'.
I've tried to GOOGLE this but have not found a specific answer.
Any ideas??
Thanks.