Reputation: 33902
What is actually stored in Timestamp field in the SQL?
My requirement is to only store the time value like 07:00 PM
And the thing when I store only time value I see error message like
Incorrect datetime value: '07:00 PM' for column 'MY_TIME' at row 1
I also tried giving 07:00:00 , but it too returns same.
And when I pass entire date, it accepts.
Is there any way to only give time to timestamp field or date is required there?
Upvotes: 0
Views: 4531