Fix switch case for date case
Merge pull request #11 from ddoolin/patch-1

Fix switch case for date case