[#1357] datastore:only accept limited date format conversions

only accept yyyymmdd, ddmmyyyy, mmddyyyy as valid date formats for
conversions.

change tests to be suit testing coding standards