my date format is like
2010-11-15 04:28:31
i want to pick just 2010-11-15 instead of 2010-11-15 04:28:31 ,
using MYSQL query ,
SELECT SUBSTR(my_date,0,6) FROM TBL ,
This query retrieving just empty value ,
How to form substr function in mysql QUERY ,