Limited gains on the day though
For the day, the S&P and the Nasdaq both closed at record high levels.
More specifically:
For the week, the major indices all rose: