title: How to convert Formatted Date (yyyy-MM-dd) to Unix time in Java?
body: <p>How to convert Formatted date (yyyy-MM-dd) to Unix time in Java?</p>
  
  <p>I want to declare a date using </p>
  
  <pre><code>    Date birthday = new Date(y_birthday, m_birthday, d_birthday);
  </code></pre>
  
  <p>but this constructor has been deprecated, so I got to use the other constructor which uses Unix timestamp</p>