My viburnum is beautiful this year with large, white snowballs. My lilacs--so-so.

Anyway, when is the best time to prune them and how to I prune to cut back on height?