fix #2072 alternative to get best date time pattern

fix #2072 alternative to get best date time pattern