Fixed datepair and improved date format handling
Fixed a small error when dealing with the digits
Merge pull request #76 from stevschmid/master

Datepair fixes and improvements