The process in which a relatively unspecialized cell acquires specialized features of a neuron residing in the cerebral cortex.