Obtaining the surrogate key for a time dimension