Fasting goes from dawn till dusk. Sehri is eaten before dawn. Iftar is when the fast breaks at sunset.