In SAS, the INPUT function with a date format (like date9.) converts a character string to a SAS date value, which is stored as an 8-byte numeric representing days since January 1, 1960. The '13mar2010'd syntax creates a date constant, and INPUT with date9. format converts it properly to numeric.