Both are fine. The first states the condition of the project and the second states the end of the action on it. To me, the second seems the more usual expression ( The project was completed on June 8th / before its deadline ), but context will play a part in your choice.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.