We are storing date and datetime as Date object.
But, late on, we need to be able tell whether the Date object is a date or datetime.
05/18/05 00:00:00 and 05/18:05 both have the hour / minute portion. I can’t really tell them apart.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A java.util.Date is, in fact, a point in time, not a date so there is no way to use it as a date only. You will need to come up with a different approach.