Dating after long term relationships

How long does it take to get over a long term relationship? When does it feel right to start dating again?