At what age did your child potty train?

Boy or girl? How long did it take and how did you know they were ready?