That would depend on the type of crime it was. Violent crimes tend to stay on the record longer, and carry longer sentences as well. In most cases however, when there is no violent crime involved, a misdemeanor is removed after the sentence is completed, along with any post-sentencing orders, like probation or community service.
A misdemeanor conviction will stay on record until it is expunged, and it depends on the class of crime. Your record might be expunged if you do not have an extensive record, but it is up to the court.