Former first lady Michelle Obama revealed during a candid conversation that her husband wore the same tuxedo for all eight years of his presidency during state dinners.

The mother-of-two shared the enlightening tidbit during her appearance at Apple's Worldwide Developers Conference in San Jose, California on Tuesday.

The 53-year-old Chicago native noted how she was photographed and scrutinized year in and year out for the dresses and accessories she sported for state dinners as they were highly publicized events.

Scroll down for video

Former first lady Michelle Obama revealed during a candid conversation at Apple's Worldwide Developers Conference (above) Tuesday that her husband wore the same tuxedo for all eight years of his presidency

Obama noted how she was photographed and scrutinized year in and year out for the dresses and accessories she sported for state dinners. Above left the couple is pictured at the state dinner in November 2009 and right at the May 2010 event

But she said the former president easily got away with wearing the same outfit every year to state dinners. Above left the couple is pictured at the state dinner in January 2011 and right at the June 2011 event

But she said the former president easily got away with wearing the same outfit every year to state dinners.

'This is the unfair thing — you talk about Fred Astaire and Ginger Rogers — no matter what we do, he puts on that same tux,' she said.

'Now, people take pictures of the shoes I wear, the bracelets, the necklace — they didn't comment that for eight years he wore the same tux, same shoes.'

She continued, 'And he was proud of it too. He's like, 'Mmm, I'm ready. I'm ready in 10 minutes. How long did it take you?' I'm like, 'Get out of here.' '

Obama said: 'This is the unfair thing — you talk about Fred Astaire and Ginger Rogers — no matter what we do, he puts on that same tux.' Above left the couple is pictured at the state dinner in October 2011 and right at the March 2012 event

She added: 'Now, people take pictures of the shoes I wear, the bracelets, the necklace — they didn't comment that for eight years he wore the same tux, same shoes.' Above left the couple is pictured at the state dinner in February 2014 and right at the September 2015 event

The Harvard Law School graduate also shared the story behind the viral photo of her adjusting his bow tie just before they welcomed Chinese President Xi Jinping and wife Peng Liyuan during a state visit in September 2015 to the White House.

She recalled that while waiting to greet the Chinese president and his wife at the North Portico of the White House, they were being photographed by 'about 100 press people'.

'So we're standing there waiting for the cars to roll in … and I was bored,' she admitted.

'So I sort of thought, let me make sure my husband looks good.'

Obama also shared the story behind the viral photo (above) of her adjusting his bow tie just before the September 2015 state dinner. She said she was 'bored' while waiting for cars to roll in and 'thought, let me make sure my husband looks good'

The former first lady said that her husband was proud of wearing the same tuxedo every year during his presidency. Above left the couple is pictured at the state dinner in March 2016 and right at the event in October 2016

During the private Q-and-A session with Lisa Jackson, Apple's vice president of environment, policy and social initiatives, the former first lady also discussed several issues, including diversity in tech, STEM education, innovation and leadership.

'We (in the U.S.) have been teaching math and science the same way for too long,' Obama said. 'How do we get them to loves these topics at (ages) 10 and 11?'

She said that the absence of girls and women in the so-called STEM fields has a deleterious affect on the tech industry.

'I'm very passionate about girls education, and we still have a long way to go on equality and access,' Obama stated.

'We have to teach young girls they are smart and can compete.'