<Tr> <Th_colspan="2"> Chronology </Th> </Tr> <Tr> <Th> Preceded by </Th> <Td> Sex and the City (1998--2004) </Td> </Tr> <P> The Carrie Diaries is an American teen comedy - drama television series that aired for two seasons on The CW from January 14, 2013, to January 31, 2014 . It is a prequel to the HBO television series Sex and the City and based on the book of the same name by Candace Bushnell . The first season focuses on Carrie Bradshaw (AnnaSophia Robb) during her junior year of high school in 1984 as she explores life in New York City while interning at a fashion magazine, while the second season focuses more on her expanding life in the city as well as the lives of her friends . </P> <P> The pilot was picked up by The CW to a series order of 13 episodes in May 2012 . Four months into the first season, the network renewed The Carrie Diaries for a second season, which premiered in October 2013 . In May 2014, The CW canceled the series after two seasons . </P>

What year is the carrie diaries set in