|
-
May 6th, 2001, 08:23 AM
#1
Thread Starter
Member
how to get the date & time of NEXT week's first day
I'm creating an ASP-Poll and do not want the users to vote more than once a week and therefore I'm making this cookie.
The cookie should expire the first day, at 00:00:01, of the FOLLOWING week, that's what I have in mind.
an example might be necessary)
a user votes on a thursday, week 27. Then he/she will not be able to vote again until monday 00:00:01, week 28.
And when he/she votes again the poll has changed(I have this working), the main purpose of the cookie is to make sure people never votes more than once!
I get the current week by doing this:
Dim myWeek
myWeek = DatePart("ww",Date(),2,2)
--------------------
so, what I need help with here is how to get the first date & time from the following week's first day(which is monday here in Sweden).
thanks,
David
"There are no must's in life unless you provide for someone else than yourself"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|