Try:
if ($date1 > $date2) {
echo "First date is a later one than Second date";
} else {
echo "Second date is the latest.";
}
It's just as easy as you thought it'd be.
Mike
Gustav Wiberg skrev:
Hi guys!
I'm searching for what I thought would be an easy issue comparing dates. I just w
>>document.getElementById("Issue").disabled
i must see the html result
i believe u have error on your html not on the js
for example form
if you not declare a form name
u can't change issue??
can u send to us again with the htm .. and since htm kinda danger to share,
would you change the extensi
I actually started looking for one myself, right after I mailed. Haven't
found any good ones yet. I'll let you know when I do.
Chandar and Bill: I don't like forums. I enjoy using Thunderbird too much.
Mike
Alf Stockton skrev:
Mikael Grön wrote:
Alf, it has already been pointed out that this
http://www.sitepoint.com
Their forums are pretty good.
Bill
-Original Message-
From: Alf Stockton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 24, 2007 8:33 AM
To: Mikael Grön
Cc: php windows
Subject: Re: [PHP-WIN] Javascript partially not working
Mikael Grön wrote:
> Alf, it has
Devshed Forums wil be good[http://forums.devshed.com/]
thnx/Chandar
Alf Stockton wrote:
Mikael Grön wrote:
Alf, it has already been pointed out that this list is for PHP. That
the JavaScripts are supposed to run on a page generated from PHP
isn't enough to make it PHP related.
Please register t
Mikael Grön wrote:
Alf, it has already been pointed out that this list is for PHP. That the
JavaScripts are supposed to run on a page generated from PHP isn't
enough to make it PHP related.
Please register to a JavaScript list and ask your question about
JavaScript there.
Any suggestions as
I agee to Mikaels Gröns comment about Javascript
But just for helping out a bit
If it is about Javascript and nothing below a certain line works, then it is
THAT line that is wrong...
document.getElementById("MemberName").innerHTML = "";
Best regards
/Gustav Wiberg
-Original Message-
Alf, it has already been pointed out that this list is for PHP. That the
JavaScripts are supposed to run on a page generated from PHP isn't
enough to make it PHP related.
Please register to a JavaScript list and ask your question about
JavaScript there.
Mike
Alf Stockton skrev:
I include the
I include the attached Javascript file when building my intranet web
page using PHP and it partially works.
When called the function Done() works fine and the function ClearForm()
works up to the line that reads
document.getElementById("MemberName").innerHTML = "";
Below that nothing works.
For your input about larger-date comparision. I have solved it - I only used
mktime and compared the two $date- variables
Best regards
/Gustav Wiberg
if (mktime(0,0,0,substr($date1,5,2),substr($date1,8,2),substr($date1,0,4)) >
time() ) // if $date1 > server time
{
//do stuff
}
I have a few conversions that I use. Our server stores all dates in MMDD
(as int) format, so I've got a few handy functions (OsDateToTimestamp(OsDate)
and Tim
Hi guys!
I'm searching for what I thought would be an easy issue comparing dates. I just
want to know if a date in variable
$date1 is larger then current date.
I use the format -MM-DD in $date1
and I know how to retrieve the current date and set it in $dat2
But how do I know if $date1>
12 matches
Mail list logo