When to ask?

When is it the right time to ask a guy if he ever wants kids?

Before dating?

Months into a relationship?