Made changes asked in review by charettes

* Added fuctional test.
* Added 'strptime' method to transform a string into a date objet
  according to a given format.