How to get time range

It’s good to search the forums before posting, there are lots of posts on setting cell color in Excel.