Fixing date parse on visualize

Dates filled in with empty string were getting parsed incorrectly. They should be better now.
Towards #1305