creating separate function for calling strftime on dates before 1900