Re: [PHP] problem with mktime

2006-04-30 Thread Richard Lynch
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 > > > >

Re: [PHP] Problem with mktime, need to add 30 days to current date

2003-08-20 Thread Marek Kilimajer
$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())

Re: [PHP] Problem with mktime, need to add 30 days to current date

2003-08-19 Thread Sn!per
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

Re: [PHP] Problem with mktime()

2002-05-20 Thread Rasmus Lerdorf
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

Re: [PHP] Problem with mktime()

2002-05-20 Thread Dan Hardiker
> $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