Moving to Florida from NYC

If I move to Florida from NYC on January 1,2021 will NY still tax the bonus I will be getting on January 30, 2021 because NY assumes the bonus was for the work performed in 2020? 

 

What if I move to Florida on March 1, 2021 (and still get my bonus on Jan 30) - would NY pro-rate taxes or do I pay full year taxes because the bonus was for the work performed in NY in 2020?