The law says you must not set off or throw fireworks (including sparklers) in the street or other public places.
You must not set off fireworks between 11pm and 7am, except for:
Bonfire Night, when the cut off is midnight
New Year’s Eve, Diwali and Chinese New Year, when the cut off is 1am