This is my date data ; From : 09-01-2013 To : 22-01-2013 (the format is fixed)
how to format for column date send_date_time to d-m-Y .. below is my query:
$filter = "and DATE_FORMAT(send_date_time,'%d-%m-%Y') BETWEEN '08-01-2012 12:00:00' and '22-01-2013 12:00:00' "; but above query is failed when i try with this(below) query, yes can work:
$filter = "and send_date_time BETWEEN '2013-01-08 12:00:00' and '2013-01-22 12:00:00' "; Full query
$get_transaction_history = ("select * from `sms_sendlog` where store_id='".$store."' ".$filter." order by id desc"); Column:
Colum Name : send_date_time e.g value : 2012-10-22 10:19:36