How To Get A Kitten To Stop Meowing?

i have heard of people putting their kitten in a bag and tying it up. does this work? if so, how long do you leave it like that for?

if not, what can i use to make my cat stop meowing at night.