• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compare Dates sans Time Fields  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!