Read dāngtiān this is a different word, on that day, pointing back at a day already named. Read dàngtiān, as here, it means inside the one day: whatever comes next happens before the day is out.
就 often sits alongside it, marking that no time was lost.