Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Compare Dates sans Time Fields

 
Hix Enfafen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I saw that in the general java forums for comparing two Dates irrespective of the Time Data, but It seems I can't do that in J2ME. Any help appreciated, just to be clear: I want to compare two Dates on only the (Month/Day/Year) data.
Thanks,
Hix
[ November 13, 2003: Message edited by: Hix Enfafen ]
[ November 13, 2003: Message edited by: Hix Enfafen ]
 
Hix Enfafen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

where Ldate1 is a long.
If anyone is interested i did it like this, similar to previous code I posted but not exactly the same.
you can then do comparisons on the day,month,year ints.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!