Erstwhile:
: in the past : formerly
- cultures, erstwhile unknown to each other —Robert Plank
I happened to use it in a comment in some computer code for work today, and suddenly realized my conception of the definition of the word was a trifle foggy.