I don't understand why you are asking here if the police already told you.
Anyhow, where I live the sound ordinance says that you need to quiet from 11 pm until 7am. Although if you are making too much noise during the day, you can get shut down at any time.
I have noisy neighbours who like to party every Monday night. I give them until 11 or 11:30pm to shut up. I'm very patient, but I've called the cops on them 4 times already.
But I think that universally, you shouldn't bother the neighbours after 10 pm.