A dating ultrasound is an early scan that will measure heartbeat and the gestational sac to determine how advanced pregnancy is. The heartbeat is the first sign of viability (meaning the pregnancy has not miscarried and is not ectopic).