title: Date need to be converted in Specific format - AngularJs
body: <p>I am a newbie in angular. Here I am stucked at:</p>
  
  <p>I want to use the DB date and time to convert into two specified formats -</p>
  
  <p>All the data is coming from my DB mysql-</p>
  
  <ol>
  <li>The age how much time ,day before the field is created  Example:(2d 3h 30min)</li>
  <li>Convert the DB yyyy-MM-dd HH:ii:ss format to the dd-MM-yy Example:(02-03-14)</li>
  </ol>
  
  <p>But as per my understanding date format takes unix timestamp in angular </p>
  
  <p>How to convert it in unix timestamp using angularjs.</p>
  
  <p>So How can we solve the problem?</p>