Nobody ever should write YYYY-DD-MM, its the worst of both worlds with the structure being both in a non-logical order AND not conforming to how dates are pronounced.
Just in case it isn't clear, the usual European date format (DD-MM-YYYY though the separators vary) reflects the usual pronunciation — even in Britain and Ireland, where today is the ninth of June.