In the above scenario, I am trying to get the assignments that are due
on the current day, thats the reason I am sending new Date() as
parameter value.

On Jan 22, 10:49 pm, zixzigma <[email protected]> wrote:
> I believe in the line below:
> assignmentsDueForDay.setParameter("date", new Date(),TemporalType.DATE);
>
> you are passing "new Date()", which is the current time/date on the system,
> and is not the date you are looking for.
> you need to pass the Date you are looking for, not the current time.
>
> i've read in previous posts, that its better to create a DataTransferObject
> for your Date (day/month/year).
> and pass it to the server, because the time/date on the client would likely
> be different than server (considering time zones)/
>
> make sure you use an appropriate date, instead of new Date().
>
> this is all I am guessing, I might be wrong.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to