complete-reference-vb_net_26
complete-reference-vb_net_26
Table 15−6 displays the standard format strings for formatting DateTime objects. Date and time separators
displayed by formatters are defined by the DateSeparator and TimeSeparator characters associated with the
DateTimeFormat property of the current culture.
While using the formatters specified in Table 15−6 is straightforward, keep in mind that, in cases where the
InvariantCulture is referenced by the "r", "s", and "u" specifiers, the characters associated with the
DateSeparator and TimeSeparator characters do not change based on the current culture.
Custom Formatters
As mentioned earlier, custom formatters can be used to control the output format of your values. When you
use the Custom format option, special characters are used asa template to shape the output. Characters that
are not recognized are simply copied to the output. Here are some examples of custom formatters for
numerical data.
510