When executing the following statement, the error occurs: Unabled to convert Date/time
. I try to display the information that this query brings in a DataGridView
.
SELECT codigo, nombre, marca, precio, CONVERT(fechaexpira, DATE)
FROM productos
When executing the following statement, the error occurs: Unabled to convert Date/time
. I try to display the information that this query brings in a DataGridView
.
SELECT codigo, nombre, marca, precio, CONVERT(fechaexpira, DATE)
FROM productos
Use the function to convert a
DATE_FORMAT
column of typeDATE
o1 to string . That is (for example):TIME
where:
Grades
Let's go by parts, with this couple of lines the basic idea is acquired:
Now:
Reference: https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html