Dates and times are actually numeric values that have been formatted to appear as dates and time. You can change the way Excel displays the date and time if you want.
The Date and Time categories are in the Category list on the Number tab in the Format Cells dialog box. You can use the Date format to display date and time serial numbers as date values with slashes or hyphens. The default Date format is the month and day separated by a slash; for example, 7/2. To display only the time portion, use the Time format.
The Time format lets you display date and time serial numbers as time values with hours, minutes, seconds, AM, or PM. The default Time format is the hour and minutes separated by a colon; for example, 11:00. You can perform calculations on the time values. To display only the date portion, use the Date format.
Excel offers a wide variety of date and time formats, which are listed in Table 9.2.
July 2, 1998
After you figure out which date and time format you want to use, you can change the dates using the Format Cells dialog box.
In the To Do exercise, you need to format the date on the Summary sheet in the Sales workbook.
Click the Summary sheet tab. Select the cell that contains the date you want to format; in this case, select cell A12.
Click the Format menu and choose Cells. The Format Cells dialog box opens.
Click the Number tab.
Click the Date category in the Category list. On the right, you see a date in the Sample box and a list of date types (see Figure 9.8).
In the Type list, click the seventh date format (Mar-01) in the list. In the Sample box, Excel shows you what a sample date would look like formatted with that type.
Click OK. You should see the formatted date in the selected cell.
If Excel doesn't have a preformatted date format that suits your needs, you can create your own date format. To do so, choose the Custom category on the Number tab in the Format Cells dialog box. Excel displays format codes in the Type list on the right. Choose one of the date format codes as a starting point for your custom date format. Then make your changes to the format you selected.
You can reuse all modified custom date formats within a worksheet without retyping them. Excel stores all customized date formats at the bottom of the Type list. That way, you can select them again and again. However, if you create a custom date format for one workbook, you have to re-create the format for other workbooks.