When did they arrive at Yosemite?

1. They arrived at Yosemite in the afternoon on July 20.

2. They arrived at Yosemite on the afternoon of July 20.
-----------------------
Which answer is right?

Both are grammatically correct, but 2 is far better -- the choice of "of" is the better preposition for this idea.