title: Find the oldest date in a list of dates
body: <p>I need a help in coming up with function in JavaScript. The function should be able to find the oldest date from the list of dates in this format <code>yyyy-mm-dd hh:mm:ss</code>. So the function would receive a text and among the lines it should find the oldest date entry and select text associated with that date.</p>
  
  <p>Also if there is Java solution for this problem that could work to and I will use something to include Java inside JavaScript.</p>