Two other men intervened, wrestling with Millar until he dropped the knife and left, yelling as he did so.
Lawyer Ian Hard said his client was under the influence of alcohol at the time but since then had moved from Masterton to Gisborne where he was turning his life around.
He had undertaken anger management and was completing a carving course, Mr Hard said.
"He is motivated to do something with his life."
Judge Morris stood the case down to give Millar time to write a letter of apology to his victims before sentencing him.
She then told Millar his actions were extremely dangerous considering there was a mixture of alcohol, drugs and anger involved then "presenting a knife makes a lethal cocktail".
"Things can very tragically go wrong," she said.
Since the incident Millar had done a lot to turn his life around and was now a productive member of the community, the judge said.
She sentenced Millar to nine months' supervision with a special condition to undertake drug and alcohol along with anger counselling as directed.
"I wish you well," she said.