IgM antibodies appear within a few days to weeks; IgG antibodies appear later and can persist for years.