"Did you work today" - the speaker sees the working day as finished.
"Have you worked today"? - The speaker still considers the day as continuing.
Which is used depends on how the speaker sees things at the moment of speaking.
- For Teachers