One Day

The film opens with a short scene from the "current" day in 2006, which appears later on, before going back 18 years.
Dexter Mayhew (Jim Sturgess) and Emma Morley (Anne Hathaway) meet on 14 July 1988 after their graduation from the University of Edinburgh. They spend the night together but agree to be just friends, and plan to spend the following day together, the 15th, St. Swithun's day. The film chronologically reconnects Dexter, Emma or both of them on that one day over the next 18 years after they go their separate ways.
One year later in 1989, Dexter helps Emma move into a flat in London where she plans to pursue a career as a writer. However, after little success, she ends up working as a waitress in a Mexican restaurant by 1990, and meets Ian (Rafe Spall), an aspiring comedian who is hired soon after. Dexter is travelling the world while drinking and having sex promiscuously with a succession of girlfriends, but they keep in contact via phonecalls and letters. He then visits Emma on 15 July 1991 and, to get her out of her rut, suggests they go away for the weekend. They flirt back and forth and it's made clear that Emma may have deeper feelings for him, but since she knows that Dexter is not boyfriend material, nothing comes of it and two more years fly by. Dexter is now a wealthy and successful television presenter on a raucous late-night television show, where he meets Suki (Georgia King), who later becomes his new girlfriend.
Dexter visits his parents on 15 July 1994 after his mother (Patricia Clarkson) has been diagnosed with cancer and is terminally ill. He arrives at the family home still under the influence of drugs and alcohol from heavy partying the night before, which his father (Ken Stott) notices and is furious about, telling Dexter he will ban him from visiting again if he keeps it up. Also, his mother appears very unimpressed with the nature of his television show and reveals that she no longer believes he is a nice man. On the same day, Emma goes out on a date with Ian. Although there appears to be no romantic spark between them, she knows he means well and so they continue to date anyway.
By 1995, Emma is now a school teacher and has moved in with Ian. However, she grows more and more irritated with him because of his lack of ambition and failure to contribute to maintaining their household. Dexter is the presenter of another television show, which isn't doing so well, making him "the most annoying man on telly". On 15 July 1996, he and Emma meet for dinner. He turns up high on cocaine, leaves the table every thirty minutes, flirts with another woman down the hall, and insults Emma. She storms off and, out in the street, decides that they must break off their friendship due to them outgrowing each other. She tells him that although she loves him, she no longer likes him anymore.
Two years later, Dexter's television career has gone into a steep decline because he is 32 years old and television executives prefer presenters in their early 20s. Meanwhile, Emma and Ian have split up and she becomes a published author of children's books. By 1999, Dexter is in a long-term relationship with Sylvie (Romola Garai). On 15 July 2000, Emma's former university roommate and Dexter's old best friend get married, and both Emma and Dexter are invited to the wedding. There, Dexter receives a job offer from Calum, his old roommate who has since become a multimillionaire from owning a chain of organic food restaurants. Dexter and Emma leave the party to talk on the rooftop, where he tells her about Sylvie, who is now his fiancÃ©e, and is on his way to becoming a father. Emma tries to hide the fact that she is upset and they share a very brief but meaningful kiss.
By 2001, Dexter is a father but later learns that Sylvie is having an affair with Calum and they divorce. Two years pass and Emma has moved to Paris, where Dexter visits her on 15 July in the hope that they will get together again, this time for good. It is revealed that they had a one-night stand after his marriage to Sylvie broke down. However, Emma reveals that she has a new boyfriend (SÃ©bastien Dupuis), a French musician who plays piano in a jazz band. Smitten with Emma but taken aback by the revelation that she has moved on, Dexter decides to leave. Suddenly, she has second thoughts and chases after him, exclaiming that she thought she had gotten rid of him. He promises to never hurt, lie to or cheat on her, and they share a passionate kiss and finally start a full relationship together.
Emma and Dexter become engaged in 2004 and eventually marry. Parlaying his restaurant experience into a new career, Dexter opens his own cafe in England, which proves to be very lucrative, and he and Emma start trying to have their own baby. However, they are unsuccessful and become frustrated with one another. On 15 July 2006 (the scene from the very beginning of the movie), Emma is hit by a truck while riding her bicycle out of a blind alley, and she dies. Dexter becomes inconsolable and self-destructive, and is particularly desolate each year on their day. Over the years, he gets support from his ex-wife, their daughter Jasmine, his widowed father, and even Ian, who also mourns Emma every year. Ian has since married and had children, but he visits Dexter and tells him that Emma was never the same with him as she was with Dexter, that she "lit up" whenever Dexter was around, and that "she made you decent and you made her so happy".
On 15 July 2011, Dexter visits Arthur's Seat in Scotland with Jasmine. The movie flashbacks to 1988 when they met and reveals they spent their day together at the same place. At the top, Dexter and Emma promise to always be best friends.

Question: In what year are the flashbacks set in?
Answer: 1988