I am to not able to use the \'trunc(in oracle)\' function in \'mysql\' database. I have a table called dlb_cc_purchase and date field called due_date in my \'mysql\' datab
You can use DATE_FORMAT().
example:
select * from dlbcc_purchase where DATE_FORMAT(due_date,'%d-%b-%Y') = '20-nov-2014'