In fact I was just reading over the guidance notes and it doesn't say exactly when, all it says in various places on the government website is...
'5. When to apply
You and any children under 18 applying with you should apply before the end of your/their permitted stay in the UK.'
Once you apply your current visa will remain in force until they make their decision on your new application