Canman2005 Posted May 13, 2007 Share Posted May 13, 2007 Hi all I have a standard QUERY, on the QUERY I use a ORDER BY id to sort the data that is returned. One of my fields in my table is a date field and it is held in the following format "YYYY-MM-DD". Is it possible to do a ORDER BY date using the date format I use.? Any help would be sweet Thanks Dave Quote Link to comment Share on other sites More sharing options...
marmite Posted May 13, 2007 Share Posted May 13, 2007 what do you get when you just try "order by date_field asc" ? is the system not clever enough to work it out? what data type is the field defined as? is it a date type? Quote Link to comment Share on other sites More sharing options...
Barand Posted May 13, 2007 Share Posted May 13, 2007 "YYYY-MM-DD" format is perfect for ORDER BY Quote Link to comment Share on other sites More sharing options...
Canman2005 Posted May 13, 2007 Author Share Posted May 13, 2007 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.