[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets the string that separates the components of time, that is, the hour, minutes, and seconds.
Assembly: mscorlib (in mscorlib.dll)
If the custom pattern includes the format pattern ":", DateTime..::..ToString displays the value of in place of the ":" in the format pattern.
The time separator is derived from the ShortTimePattern property. We recommend that you set the time separator in short or long time patterns to an exact string instead of using the time separator placeholder. For example, to obtain the pattern h-mm-ss, set the pattern to "h-mm-ss". This practice also enables you to set patterns such as "h'h 'mm'm 'ss's'" (3h 36m 12s) that include multiple types of separators.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.