Adding api to get latest partition date for cube

Can we have one statement per line?