You can format date and time in many different ways. Look at the following example to learn how to do it.
Put the following date inside a cell: February 14, 2014 18:15:00. Right-click the cell, and then select Format Cells….
In the Format Cells window, the Number tab consists of four parts: Category, Sample, Type and Locale (location).
Click the Date position inside the Category box. On the right side, inside the Type box, different types of date and time formatting options will be displayed. Click one of them and then in the Sample box you will see the preview of the currently selected date, with the new formatting applied.
Create your own date and time formats
There is a large number of combinations when it comes to date and time formatting, but sometimes you won’t find any that meets your expectations. In such situations, Excel will let you create your own format that you can use later when working in Excel.
Click the cell again and then open the Format Cells window. Choose the Custom item, which is located at the bottom, in the Category field.
You can format date and time by using many different combinations. In the table below, you can see which letters corresponds to which type of formatting.
|Time: 10 AM||h AM/PM|
|Time: 10:36 AM||h:mm AM/PM|
|Time: 10:36:24 A||h:mm:ss A/P|
|Time: 10:36:24.75 AM||h:mm:ss.00|
Skillshare’s usually $10 a month, but because you’re an OfficeTuts reader you can get your first month free by clicking here. That’s unlimited access to over 18,000 classes on Excel, VBA, and much more.