A day in order

に after a clock time says when and で after a place says where an action happens, so 七時に学校で勉強します, while 毎日, 今日 and 明日 take no に.

From Japanese 1.