thank you for the reply bqallover, and sir william, I have tried the given query and it doesnt work. On the next go around i broke the query down and it works in steps, here is what i got. STEP 1. $query1 = "SELECT CONCAT(day,' ',month,' ',year) as modate FROM torders ORDER BY modate"; works and here are the first 3 lines of result 1 April 2006 1 January 2007 1 October 2006 10 December 2006 STEP 2. $query1 = "SELECT STR_TO_DATE(CONCAT(day,' ',month,' ',year), '%e %M %Y') as modate FROM torders ORDER BY modate"; does not work and here is the error i get You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(CONCAT(day,' ',month,' ',year), '%e %M %Y') as modate FROM tor after getting this error i did a phpinfo() on the server and here is what i got MySQL-------------------------------- Support enabled Active Persistent Links----------------- 0 Active Links--------------------------- 0 Client API version---------------------- 4.0.16 MYSQL_MODULE_TYPE----------------- external MYSQL_SOCKET----------------------- /tmp/mysql.sock MYSQL_INCLUDE----------------------- -I/usr/local/mysql/include/mysql MYSQL_LIBS -------------------------- -L/usr/local/mysql/lib/mysql -lmysqlclient and this is all on a FreeBSD ----4.11-STABLE FreeBSD 4.11-STABLE #0: Wed Apr i386 what am i doing wrong, please help