fix #18
Separating different date formats in different pieces
Merge pull request #19 from fwbrasil/fix18

fix #18
Fixing bad match/case on MySQL binary encoder