here is the scenario of what I need:
I am running promotions from sunday to sunday.
Real example:
1. whoever comes between may 29 2010 00:00:01 (saturday) and June 4 2010 23:59:59 (friday) gets picture 1A that expires June 6. if this person comes later (after june 4 2010 23:59:59 (sunday) ) the picture 1B will be shown.
2. the next week - whoever comes between June 5 2010 00:00:01 (saturday) and June11 2010 23:59:59 (friday) gets picture 2A that expires June 13. if this person comes later (after june 13 2010 23:59:59 (sunday) ) the picture 2B will be shown.
3. the next week - whoever comes between June 12 2010 00:00:01 (saturday) and June18 2010 23:59:59 (friday) gets picture 3A that expires June 20. if this person comes later (after june 13 2010 23:59:59 (sunday) ) the picture 3B will be shown.
4. so on (it's always saturday to friday and expiring on sunday)
So basically I have to pages:
1. page - set the current date of the first visit
2. page - show picture X based on the date when they came for the first time
Other requirements:
1. if they come for example 2 days later or 3 days later I need the first time visit date not to be overwritten.
Simple explanation:
1. if they came between 5-29-10 and 6-4-10 show this till 6-6-10
2. if they came between 5-29-10 and 6-4-10 show this and currentDate is 6-7-10 show that
and so on based on the real examples from before.
If you have any questions please let me know
Jan