On Sun, April 30, 2006 6:38 am, Ross wrote:
> I am using this to compare todays date with dates retieved from a
> database.
> The problem is it seem to retrun the same value for the $then variable
>
> and can be seen ot working here
>
> http://nationalservicesscotland.com/cms/time.php
>
>
>
>
$endDate=date('Y-m-d',strtotime("+30 day"));
James Johnson wrote:
Sorry about the previous post.
Hi,
I need to make a date that is 30 days from the current date, and, am
having problems with mktime
Here's what I've tried:
$endDate=date('Y-m-d',mktime(0,0,0,date('m',time()),30,date('y',time())
print date('Y-m-d',mktime(0,0,0,date('m'),date('d')+30,date('Y')));
Quoting James Johnson <[EMAIL PROTECTED]>:
> Sorry about the previous post.
>
> Hi,
>
> I need to make a date that is 30 days from the current date, and, am
> having problems with mktime
>
> Here's what I've tried:
>
> $endD
08 and 09 are not real numbers. Any number starting with a 0 is an octal
number which means you can only use digits 0-7
Drop the leading 0 and everything will work.
-Rasmus
On Mon, 20 May 2002, Johannes Tyra [BrainData] wrote:
> Hi,
>
> I want to read out the asterisk from a birthdate.
>
> Fi
> $startDate['Jungfrau'] = mktime (0, 0, 0, 08, 24, 2000);
> $startDate['Waage']= mktime (0, 0, 0, 09, 24, 2000);
Replace 08 and 09 with 8 and 9 respectivly and you will have the effect
you desire.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailin
5 matches
Mail list logo