Re: [PHP] pro-rated date

2003-02-17 Thread Tom Rogers
Hi, Tuesday, February 18, 2003, 7:03:37 AM, you wrote: PC> Anybody have a quick way of determining the number of days remaining in PC> the current month? PC> I'm currently using: PC> $nextmonth = strftime("%Y-%m-01",strtotime("+1 month")) PC> $monthdays = strftime("%d",strtotime($nextmo

[PHP] pro-rated date

2003-02-17 Thread Paul Chvostek
Anybody have a quick way of determining the number of days remaining in the current month? I'm currently using: $nextmonth = strftime("%Y-%m-01",strtotime("+1 month")) $monthdays = strftime("%d",strtotime($nextmonth)-86400); $daysleft = $monthdays - strftime("%d",time()); I can obv