Adding api to get latest partition date for cube

Why are we setting minutes and seconds to zero?