I'm comparing two dates one is a general date and other is got from gregorian calendar.
when i tried to compare both dates it is giving result false,
Later i realized that it is due to time difference. So even both dates are same and times different i want it to return true or set date of the latter to default.ie,0
Eg: Start Date : Wed May 08 00:00:00 CAT 2013
End Date : Wed May 08 00:40:30 CAT 2013
I tried calender API, set(year,month,day,hour,minute,second); but setting year,month and day i don't know. Please help me this regard to fix it.