I want to fetch date from a datetime field, when i select this field in database i get the result as ‘yyyy-mm-dd hh:mm:ss’ i want the result to be like dd/mm/yyyy
I am developing website using ASP.net C# using Mysql.query i have made is:
//***to get next date
string nextdatequery = “SELECT next_dt
FROM testcase.heardt where fil_no=?
and next_dt>?;”;
Please Help me sort my issue.
instead of
next_dtuseconvert(nvarchar(255),next_dt,103)date time styles
UPD: I’m really sorry, i don’t noticed that question is about MySql and wrote tsql code above. For MySql try something like this: