Skip to Content
author's profile photo Former Member
Former Member

Get entries later than a given date

Hello,

I'm trying to implement a method wich will return me the entries from the service where the createdAt field is greater than the given Date. So i done this:

Timestamp timeDay = new Timestamp(2008, 5, 1, 0, 0, 0, 0);

try{
        nameFilter = new QueryFilter(name);
        dateFilter = new QueryFilter(timeDay, ">=");

        list = local.findByNameAndCreatedAt(dateFilter, nameFilter);
}.....

In the Service Browser I can see an Entrie with the Value

2008-05-08T12:49:50.380

So it must return me an result, but it doesn't, just an empty List. What am I doing wrong?

Greetings

Christoph König

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2008 at 12:21 PM

    The Problem was, that I generated the Timestamp from util.Date. when i create the timestamp for a GregorianCalender it works 😉

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.