In this paper, we establish the equivalence between the solutions to an evolutionary variational inequality and the critical points of a projected dynamical system in infinite-dimensional spaces. We then present an algorithm, with convergence results, for the computation of solutions to evolutionary variational inequalities based on a discretization method and with the aid of projected dynamical systems theory. A numerical traffic network example is given for illustrative purposes.