string selectSql = "update " + table + " set state_" + mode + "_id=1 WHERE stoping_" + mode + " < current_date;";
When I call current_date, it returns yyyy-MM-dd format, but I want to return dd.MM.yyyy format, how can I do that. please help. My program works fine when I am trying
string selectSql = "update " + table + " set state_" + mode + "_id=1 WHERE stoping_" + mode + " < '16.04.2010';";
The MySQL date format is YYYY-MM-DD, but using str_to_date() and date_format() you can change the date format.
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
In your case, try
DATE_FORMAT(current_date, '%d.%M.%Y')