title: Convert string to date in bash
body: <p>I have a string in the format "yyyymmdd". It is a string in bash and I want to get it converted into a date so that all other date functions can be used on it.</p>
  
  <p>"20121212" string into "20121212" date with format "%Y%m%d".</p>