Useful Format Strings

Useful Format Strings

The decimal and thousands separators are set following the culture of your machine.


To create format patterns for date and time values, combine the strings listed in the tables below. These strings represent the year, month, day, number and so on, in different formats.

The following table lists the most frequently used strings that can be used to format dates.


The next table lists strings that are used to format time values.