The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
MySQL Help - Date Issues
I have a column of dates (field93) in this format:
MMDDYY Currently I am using: ORDER BY field93 DESC However, with the new year - this doesn't work because: 120108 shows up before 010709 How can I fix this? |
#2
|
|||
|
|||
You should not store it in this format. This is why most software stores date like (YY)YYMMDD, so it can be sorted.
|
#3
|
|||
|
|||
You should convert your dates like Marco said so you can use a reliable search method.
I can't think of any way to generally find what your looking for without searching for specific smal intervals. |
#4
|
|||
|
|||
Yes you could sort by substrings, but that could easily become a performence killer.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|