$date = mysql_query("select pharmacydate, DATE_FORMAT(pharmacydate,'%m-%e-%Y') AS date FROM orders, doctors, prescriptions, credit_order_status, physician_order_status, pharmacy_order_status, ship_order_status where orders.ordernum='$order_num' and orders.docid=doctors.userid and orders.ordernum=prescriptions.ordernum and orders.ordernum=credit_order_status.ordernum and orders.ordernum=physician_order_status.ordernum and orders.ordernum=pharmacy_order_status.ordernum and orders.ordernum=ship_order_status.ordernum and credit_order_status.creditstatus=1 and physician_order_status.physicianstatus=1 and pharmacy_order_status.pharmacystatus is NULL and ship_order_status.shipstatus is NULL"); $get_date = mysql_fetch_array($date);
//Outputs date (i.e. 02-19-2005) echo $get_date['date'];
How do i convert this date to next year?
i.e. 02-19-2005 to 02-19-2006
Thanks.
jatar_k
6:00 pm on Feb 19, 2005 (gmt 0)
alright, maybe you dont want to look at strtotime ;)