Fixed error with date format on exports - fixes #119
Tests for type conversions
Merge pull request #1200 from modilabs/1199_bad_date_format

Bug in date formatting and tests to check - closes #1199