Compare Times

Hi,How to compare two times in java for difference less than or greater than.Plz exampe.Time Format: 4.12 AM, 5.16 PMThanks in advance.
[163 byte] By [Ramsha] at [2007-10-3 3:46:35]
# 1
1. Convert to Date objects using SimpleDateFormat.parse()2. Compare Date objects using Date.compareTo()
itchyscratchya at 2007-7-14 21:43:21 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thank You got it.
Ramsha at 2007-7-14 21:43:21 > top of Java-index,Desktop,Core GUI APIs...