You can remember the meaning of 日子 with this easy mnemonic:
It's great to spend a day in the sun (日) with a child (子) for a change. Children might talk nonsense but playing along can be fun and remind you of your childhood days.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.