new sp for get last date in month in course