He also performed creditably to finish fifth in the group 1 Auckland Cup and fourth in the group 2 Avondale Cup.
"I'm so happy to see him win one," said owner Kevin Pratt, who races the gelding under his Kamada Racing banner.
"I'm going back to Sydney tomorrow and I've been here a month and hadn't won a race until now."
Five To Midnight drew the inside gate and rider Danielle Johnson settled him into the trail and bided her time until she was into the clear on straightening.
Maygrove was driven to the front on the turn by Matt Cameron, but Five To Midnight wore him down in the closing 250m for a deserved victory. Frontrunner Balham boxed on gamely for his third placing ahead of Pacorus.
- NZ Racing Desk