Moving date format detection to the proper object