Here's the answer:
Watch a real native speaker say it:
Here's how it sounds in a textbook:
You could also say:
- shénme shíhou
- shen-me shi-hou
Fun fact: the hundreds of thousands of people learning Chinese with Memrise get this phrase correct 87.18% of the time!