imstillatwork
IS-IT--Management
I have a date in my database:
I need two things:
1.) To be able to SELECT dates in the database, ignoring the YEAR. I give day and month, I want all records matching, regardless of year.
2.) To be able to SELECT by todays date, and get every record for today (again, ignoring the year) and 7 days ahead.
If todays date is 5/5, I want to SELECT records from 5/5 to 5/12
but what happens if I today is 5/24? I want dates 5/24 to 6/2. make sense?
any ideas? i know it isnt that hard for you guys!
I need two things:
1.) To be able to SELECT dates in the database, ignoring the YEAR. I give day and month, I want all records matching, regardless of year.
2.) To be able to SELECT by todays date, and get every record for today (again, ignoring the year) and 7 days ahead.
If todays date is 5/5, I want to SELECT records from 5/5 to 5/12
but what happens if I today is 5/24? I want dates 5/24 to 6/2. make sense?
any ideas? i know it isnt that hard for you guys!