For speaking or writing it out going month then day feels natural, although I know it’s a regional thing. If you’re going number format, it should always go smallest to largest (DD-MM-YYYY) or largest to smallest (YYYY-MM-DD). For file names, definitely the latter so you can sort by alphabetical and everything is in order.