Add detection of yyyyMMdd and fix ranking of yyyy-MM-dd