Gets or sets the string that separates the components of time, that is, the hour, minutes, and seconds.
Public Property TimeSeparator As String
Dim instance As DateTimeFormatInfo Dim value As String value = instance.TimeSeparator instance.TimeSeparator = value
public string TimeSeparator { get; set; }
public: property String^ TimeSeparator { String^ get (); void set (String^ value); }
public function get TimeSeparator () : String public function set TimeSeparator (value : String)
The property is being set to nullNothingnullptra null reference (Nothing in Visual Basic).
The property is being set and the DateTimeFormatInfo is read-only.
If the custom pattern includes the format pattern ":", DateTime..::.ToString displays the value of TimeSeparator in place of the ":" in the format pattern.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune