You can remember the meaning of 日记 with this easy mnemonic:
I record the time of sun (日) rise in my diary so I can remember (记) what time I woke up that day.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.