Adding api to get latest partition date for cube

Is this check required?