You were a mental patient, what the illness was and how long you were there is entirely up to you. Create the story as you wish.