title: How to Convert JavaScript Date to Date in Java?
body: <p>I need to convert <code>JsDate</code> to <code>java.util.Date.</code> I searched but I couldn't find anything. So could you help me with this problem?</p>
  
  <p><strong>Edit:</strong> I do this conversion process on GWT screen. I have <code>Datepicker</code> on screen and it gives me <code>JsDate</code> value when I use it's <code>getValue()</code> method. So I'm supposed to put this value into the property of an object which has Date type.</p>
  
  <pre><code>ObjectName.setDate(PickerName.getValue());
  </code></pre>
  
  <p>I hope my edit will be more clear. </p>
  
  <p><strong>Edit2:</strong> </p>
  
  <p>This line is the solution of my problem:</p>
  
  <pre><code>myObject.setDate(new Date((long) myPicker.getValue().getTime()));
  </code></pre>