Use gregorian calendar to encode dates

Fixes #15
Merge pull request #16 from wordpress-mobile/issue/15-gregorian-calendar

Use gregorian calendar to encode dates