I have a database with a bunch of dates. I would like to, given a date, get the next date in the database and previous date in the database.
So given a databse with 10/10/09, 10/12/09, and 10/15/09, if someone enters the date 10/13/09, it should return 10/12/09 as the previous date and 10/15/09 as the next date.
How can I do this? Thanks!