The user will enter the date in this format : 17-Feb-2017
and the date stored in mysql db is in this format : 2015-02-17 00:00:00
what I tried to do is
SELECT * FROM insurance where DATE_FORMAT(in_date,'%d-%b-%Y') > '17-Feb-2017';
DATE_FORMAT(in_date,'%d-%b-%Y') return the date in this format : 17-Feb-2017
but that not working !!
any suggestions ?