The process in which a relatively unspecialized cell acquires specialized features of a Type II pneumocyte. A Type II pneumocyte is a surfactant secreting cell that contains abundant cytoplasm containing numerous lipid-rich multilamellar bodies.