The definition of erstwhile is something from an earlier time.
An example of something erstwhile is a girl who was your best friend as a child.
Archaic some time ago; formerly
of an earlier time; former: my erstwhile friend
In the past; at a former time; formerly.
Former: our erstwhile companions.