Frozen bananas will last in the freezer for up to 6 months before going stale although the bananas are still safe after 6 months they just won't taste as good.
You can freeze whole bananas without slicing them or you can slice the bananas up first but be sure to remove the banana peelings first before placing the bananas into a freezer safe container or bag.