• Post Reply Bookmark Topic Watch Topic
  • New Topic

java comparision  RSS feed

 
vijay selvarajan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Friend.Iam new to JavaRanch.

I want to compare the following two date,month,year like (D1,M1,Y1) and (D2,M2,Y2). here I want to compare the two.If its equals means return 1,not equals means return 0.please help me.
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Have you looked at the Date and/or Calendar classes?
 
vijay selvarajan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony Docherty wrote:Welcome to the Ranch.

Have you looked at the Date and/or Calendar classes?


I want the entire coding for that.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, and we'll help you write that, but we won't do the work for you. Which methods have you found in the javadocs which you think could be useful for this?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!