We all make mistakes, some are just published in books.
Consider this my first correction to Adam’s and my book: Advanced ASP.NET AJAX Server Controls for .NET 3.5.
The format strings that are allowed for Number types are the following:
- c or C: Currency
- p or P: Percentage
- d or D“: Decimal (# number of digits)
- n or N“: Numeric (# number of digits after decimal)
– e, f, g, r, x, and custom format strings are not supported
The standard format strings that are allowed for the Date type are the following:
- d: Short date pattern
- D: Long date pattern
- t: Short time pattern
- T: Long time pattern
- F: Full date/time pattern (long time)
- m or M: Month day pattern
- s: Sortable date/time pattern
- y or Y: Year month pattern
– the standard format strings: f, F, g, G, O, o, R, r, u, U are not supported. However, custom format strings that use the “mmm”, “yyyy”, “hh”, etc. formats are supported. You can build your own date format string.