Fixes for date sanitization

... a string instead of date