Sometimes the mental and behavioral symptoms of a UTI are mistaken for dementia. Dementia is a long-term illness that progresses slowly. Unlike dementia, the symptoms of a UTI come on suddenly, within a matter of days. In patients who have been diagnosed with dementia, a rapid decline can indicate a UTI.