Question: When was the Shakespearean problem play "All's Well That Ends Well" written?
Context: Shakespearean tragedy is the designation given to most tragedies written by playwright William Shakespeare.  Many of his history plays share the qualifiers of a Shakespearean tragedy, but because they are based on real figures throughout the History of England, they were classified as "histories" in the First Folio.  The Roman tragedies—"Julius Caesar", "Antony and Cleopatra" and "Coriolanus"—are also based on historical figures, but because their source stories were foreign and ancient they are almost always classified as tragedies rather than histories.  Shakespeare's romances (tragicomic plays) were written late in his career and published originally as either tragedy or comedy.  They share some elements of tragedy featuring a high status central character but end happily like Shakespearean comedies.  Several hundred years after Shakespeare's death, scholar F.S. Boas also coined a fifth category, the "problem play," for plays that don't fit neatly into a single classification because of their subject matter, setting, or ending.  The classifications of certain Shakespeare plays are still debated among scholars. A problem picture is a genre of art popular in late Victorian painting, characterised by the deliberately ambiguous depiction of a key moment in a narrative that can be interpreted in several different ways, or which portrays an unresolved dilemma.  It has some relation to the problem play.  The viewer of the picture is invited to speculate about several different possible explanations of the scene.  The genre has much in common with that of book illustration, then at its most popular, but with the text belonging to the illustration omitted. All's Well, Ends Well 2012 () is a 2012 Hong Kong romantic comedy film directed by Chan Hing-ka and Janet Chun.  It is the seventh installment in the "All's Well, Ends Well" film series. All's Well, Ends Well 2009 () is a 2009 Hong Kong romantic comedy film directed by Vincent Kok.  It is the fourth instalment in the "All's Well, Ends Well" film series, the previous film being "All's Well, Ends Well 1997". In Shakespeare studies, the problem plays are three plays that William Shakespeare wrote between the late 1590s and the first years of the seventeenth century: "All's Well That Ends Well", "Measure for Measure" and "Troilus and Cressida".  Shakespeare's problem-plays are characterised by their complex and ambiguous tone, which shifts violently between dark, psychological drama and more straightforward comic material; compare tragicomedy. Black-Eyed Susan; or, All in the Downs is a comic play in three acts by Douglas Jerrold.  The story concerns a heroic sailor, William, who has been away from England for three years fighting in the Napoleonic Wars.  Meanwhile, his wife, Susan, has fallen on hard times and is being harassed by her crooked landlord uncle.  A smuggler named Hatchet offers to pay her debts because he wants her for himself; he tries to persuade her that William is dead.  Soon after William returns to solve this problem, his drunken, dastardly captain tries to seduce Susan.  William, not recognising his captain from behind, strikes him with his cutlass.  He is court-martialled for attacking a senior officer and sentenced to be hanged.  But it turns out that he had been discharged from the navy before he struck his captain, so all ends well.  Much of the humour in the piece centers on the sailor's nautical dialect, combined with his noble character.  The play is a nautical melodrama (with all its stock characters) that praises the patriotic British tar (sailor) while critiquing authoritarianism in the British Navy.  Aspects of the story were later parodied in "H.M.S. Pinafore" (1878). Mrs. Warren's Profession is a play written by George Bernard Shaw in 1893, and first performed in London in 1902.  The play is about a former prostitute, now a madam (brothel proprietor), who attempts to come to terms with her disapproving daughter.  It is a problem play, offering social commentary to illustrate Shaw's belief that the act of prostitution was not caused by moral failure but by economic necessity.  Elements of the play were borrowed from Shaw's 1882 novel "Cashel Byron's Profession", about a man who becomes a boxer due to limited employment opportunities. All's Well, Ends Well 2011 is a 2011 Hong Kong romantic comedy film directed by Chan Hing-ka and Janet Chun.  It is the sixth installment in the "All's Well, Ends Well" film series, was released on 2 February 2011. All's Well That Ends Well is a play by William Shakespeare.  It is believed to have been written between 1604 and 1605, and was originally published in the "First Folio" in 1623. All's Well, Ends Well 2010 is the fifth installment of the "All's Well, Ends Well" series released during China's lunar holiday seasons.  Directed by Raymond Wong and Herman Yau, it was released to cinemas in Hong Kong on 11 February 2010.
Answer: between 1604 and 1605