Right-click on the Timecode in the top right of each viewer to get this menu:
You can't change the main Timeline timecode display (the one in the top left of the timeline, above the track names). But you can get the frame number visible for the current timeline, in the top right of the timeline viewer. And if you enable the Timecode Window, it follows the setting of the viewer.
Example screenshot - boxes in red show frame num: