Date: Fix parsing of the day part when it precedes the month part

Fixes #323

---

TODO:
- [x] Sign CLA;
Let's rename `totalDays` `daysOfYear` according to http://www.unicode.org/reports/tr35/tr35-dates.html. Please, add one more commit addressing it (I can squash it later).