title: How to fetch date from string format
body: <p>We have an entry in database for an event time left as <code>P1DT3H53M45S</code>, This means 1 day, 3 hours 53 min and 45 sec. I wan to retrieve date from this format.</p>
  
  <p>I can retrieve the duration left by exploding this string and the calculate and then add to current time and create date.</p>
  
  <p>Is there a better way to find the duration left other than exploding ?</p>