A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
how to compare a Date and a Calendar date ?
Joined: Jun 30, 2006
Apr 01, 2008 14:43:00
I have a
variable and a Calendar.getInstance(), how do I compare them ??
Joined: Dec 31, 2004
Apr 01, 2008 15:52:00
Calendendar has a method getTime() that returns a Date object. Use it and compare them.
It is sorta covered in the
JavaRanch Style Guide
subject: how to compare a Date and a Calendar date ?
Quick Date Question
comparing two dates
Problem with Date Object
compare two dates thru Calendar
compare the date field with the current date in struts 2 validation.xml
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013