Not sure what to tell you. If you read the documentation like I suggested, you'll get a lot more detail on how mysql deals with dates. Of course, you never said what dbms you are using so I'm assuming MySQL.
Generally speaking, you'll see that the preferred date formats put the year first, then the month, then the day. YYYYMMDD rather than the other way around. I can't help but wonder what your dates look like in your database -- perhaps they were entered incorrectly?
Also, you haven't bothered to post the schema of your table. that might also tell us something.