Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic