The fixture is part of the Betway Cup pre-season tournament and will take place in August
West Ham welcome Serie A champions Juventus to the the Olympic Stadium for the first match in their new home ground.
The Hammers will play their first game since moving from the Boleyn Ground on 7 August, as part of the Betway Cup pre-season tournament.
“We are delighted to be marking such a monumental day in West Ham United’s history by welcoming one of the world’s biggest clubs to our fantastic new home" chairman David Gold told the club's official website.
“It was always our intention to open the new 60,000-capacity Stadium on Queen Elizabeth Olympic Park with a fixture fitting of the occasion, and the visit of the reigning Italian champions Juventus is most certainly that.
“We are hugely excited and honoured by this wonderful opening fixture against a historic club which shares many of the values we cherish here at West Ham.
“There has been an enormous amount of work done over the past few years to ready the stadium for our first game and we cannot wait to show our fans and the wider football world how incredible it will look.
“This will be a game you’ll want to tell your grandkids you were at. Sunday, August 7 just can’t come soon enough!”