This not good.
Code:
---------------------------------
| Week | DateTime |
---------------------------------
| 1 | 9/5/2002 6:30:00 PM
Think that's going to be tough to work on, depending on what your database is. Ideally you want you date in the db like this;
Code:
---------------------------------
| Week | DateTime |
---------------------------------
| 1 | 2002/09/05 18:30:00
| x | yyyy/mm/dd hh:mm:ss
That's because if you take two days like 05 and 06 September 2002, you'll get this;
2002/09/05 18:30:00
2002/09/06 13:45:00
Strip all the /'s and : and you've got two numbers, like;
20020905183000
20020906134500
Those you can compare with less that < and greater that >.
Your database though may be clever enough to help you out. Depends what it is.
Bookmarks