Fix bug in DatePart
Merge pull request #133 from Locu/fix-datepart

Fix bug in DatePart