I often reference SE questions outside, so the question number is important to me. But I see no way to get it.
If you click on the timestamps (bottom right of a post), a menu containing the share button will be presented to you. One of the options given to you should be "copy to clipboard".
Using that share option will place the post's URL (which contains the post ID) in your clipboard for you to use later.