RE: String comparsion

"Wayne Marrison" <[email protected]> Sat, 7 Mar 2009 07:42:06 -0000
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
Hi,

It's probably easier if you convert the strings to a real time based value
rather than try to compare strings.

Have a look here at a simple example :
http://www.kodejava.org/examples/101.html

Once you have converted both strings to actual time values you should be
good to go.

Regards

Wayne


-----Original Message-----
From: ameen rahman [mailto:[email protected]] 
Sent: 07 March 2009 06:37
To: [email protected]
Subject: String comparsion 

Hi.......
          I need to compare two string values(DateTime). For eg: if the
datetime values are "Sat Mar 07 11:15:52 IST 2009" and  "Sat Mar 07 12:12:32
IST 2009".
i want to use condition like this:
if(2nd value > 1st value)
{
}
else
{
}

will anyone suggest me how to overcome this problem and to connect the
systems.

Thanks,

Ameen
smime.p7s (application/x-pkcs7-signature, 2.5 KB) - not displayed