Here is one way to do it, with a simple formula and formatting...
Date and Time.xlsx