As long as the substance that causes the dermatitis is no longer in contact with the skin then the dermatitis will usually go away on it's own within 14 to 30 days.
You can usually speed up the healing of dermatitis and make the dermatitis go away sooner if you use some cream for healing dermatitis.