Rafizam Abdul Rahman of Taman PSJ here pleaded guilty to preventing his wife from leaving the house between 6pm on July 6 and 3.30pm on July 18.
He was charged under Section 340 of the Penal Code that carries a jail term of up to a year and a maximum RM2,000 fine.
Police arrested Rafizam on the same day his wife was freed.
DPP Amalina Zainal Mokhtar prosecuted before magistrate Tuan Ruzuaini Tuan Lah. Rafizam was unrepresented.