Read the date, month, years fields from database.

Fixes #17.
Merge pull request #51 from SompongSoftwareEnterprise/issue-17

Fix for issue #17. InputDate Read the date, month, years fields from database.