|
-
May 28th, 2005, 03:23 PM
#1
Thread Starter
Addicted Member
Calculate a specific date
hello people long time no forum for me, sorry i was wondering how i could calculate the 2nd sunday of every month in php or something similar i had a look at strtotime() but couldnt think of how to use it
thanks for your help
senorbadger
-
Jun 1st, 2005, 09:01 PM
#2
Addicted Member
Re: Calculate a specific date
I dont know...but since no-one had replied.. i would possibly suggest using a julian date.
-
Jun 1st, 2005, 10:41 PM
#3
Lively Member
Re: Calculate a specific date
have to go for own function
-
Jun 2nd, 2005, 01:57 AM
#4
Thread Starter
Addicted Member
Re: Calculate a specific date
i think i have a solution
the user will provide a start date so...
eg: user enters "5/06/2005" (UK date)
this is really in effcient
my script can use mktime() to get the value for "next sunday"
in a loop store the value given for next "sunday" and calculate the next sunday do this 4 times
that gives the the same sunday the next month
though its not the best way do u think it will work ?
-
Jun 3rd, 2005, 10:57 PM
#5
Addicted Member
Re: Calculate a specific date
Well the days of monts vary from 28 to 31? Is that not an issue?
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
|