You can remember the meaning of 末日 with this easy mnemonic:
At the end of the (末) last day of the year, we all have to face the sun (日) and thank it for showering us with warmth and light.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.