I'm trying to get the longest date entered in my BD
, I'm trying to use the MAX and DATE_FORMAT functions together and the search result is not as expected, I have these dates registered:
2016-10-24 2016-10-25 2016-10-26 2016-10-27 2016-10-28 2016-10-31 2016-11-01 2016-11-03 2016-11-04 2016-11-07 2016-11-08
SELECT MAX(DATE_FORMAT(Data,'%d/%m/%Y')) as DataInicial FROM calendarioDolar