I have a column named DateTime but i want to show only Date from column not the time here is my query to show Date and Time from table
select Feedback.DateTime from ctrData2.Feedback
So help me to separate from Date from DateTime column.
I have a column named DateTime but i want to show only Date from column not the time here is my query to show Date and Time from table
select Feedback.DateTime from ctrData2.Feedback
So help me to separate from Date from DateTime column.
You can try
select YEAR(Feedback.DateTime)+"-"+MONTH(Feedback.DateTime)+"-"+DAYOFMONTH(Feedback.DateTime)
from ctrData2.Feedback
OR
select date_format(Feedback.DateTime, '%Y %m %d') from ctrData2.Feedback