title: java create date object using a value string
body: <p>I am using this to get the current time :</p>
  
  <pre><code>java.util.Calendar cal = java.util.Calendar.getInstance();
      System.out.println(new java.text.SimpleDateFormat("EEEE, dd/MM/yyyy/hh:mm:ss")
              .format(cal.getTime()));
  </code></pre>
  
  <p>I want to put the value (which I print it) into a date object, I tried this:</p>
  
  <pre><code>Date currentDate = new Date(value);
  </code></pre>
  
  <p>but eclipse tells me that this function is not good.</p>
  
  <p><strong>Edit</strong>
  the <code>value</code> is the value that I printed to you using system.out.println</p>