Hie
I am storing the two date components in my entities.
However while trying to compare before adding another fails and query is
unable to compare the date fields even they are same.
Here is the query:
String query = "select from " + PocVacationSchedule.class.getName() + "
where " +
"pocId == " + pocId + " && startDate==\"" + startFrom + "\" &&
endDate==\""
+ endFrom + "\"";
these of java.util.Date.
Not sure why it is not comparing.... Please advise...
I even tried to do something like before storing these fields
Calendar cal = Calendar.getInstance();
cal.setTime(startFrom);
startFrom = new Date(cal.get(Calendar.YEAR),
cal.get(Calendar.MONTH),cal.get(Calendar.DATE));
Thankx and Regards
Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.