str2datetime: allow override default format