How long should I hold my pee before ultrasound?

Ann • Very happily married💍Beautiful baby girl💗

I’m 19 weeks along and have my mid-pregnancy ultrasound today where (hopefully!!) I’ll find out the gender. I was told to drink lots of water and don’t pee before going in. I was thinking holding it for 2 hours before would be good but I wasn’t given a specific time.