When was the first true pyramid made?

The creation of the pyramids were from the orders of King Sneferu and they had two failed pyramid construction before the third was built perfectly which was called the Red pyramid (first true pyramid). The first pyramid that was built was the Medium and the second was called Bent pyramid.