Herpes or dermatitis

Can a herpes ulcer appear for one day & then disappear in a few hours? Or does that sound like contact dermatitis?