Microsoft Office Tutorials and References
In Depth Information
Enhancing Reporting with Custom Number Formatting
Formatting dates and times
Custom number formatting isn’t just for numbers. You can also format dates and times. As you can
see in Figure 2-17, you use the same dialog box to apply date and time formats using the Type input.
Figure 2-17: You can also format dates and times using the Format Cells dialog box.
Figure 2-17 demonstrates that date and time formatting involves little more than stringing
datespecific or time-specific syntax together. The syntax used is fairly intuitive. For example, DDD is the
syntax for the three-letter day, mmm is the syntax for the three-letter Month, and yyyy is the syntax
for the four-digit year.
There are several variations on the format for days, months, years, hours, and minutes. Take some
time and experiment with different combinations of syntax strings.
Table 2-1 lists some common date and time format codes you can use as starter syntax for your
reports and dashboards.
Table 2-1 : Common Date and Time Format Codes
1/31/2013 7:42:53 PM Displays As
dddd mmm yyyy
Thursday Jan 2013