Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)
/** @property */ public static String get_TimeString () /** @property */ public static void set_TimeString (String Value)
public static function get TimeString () : String public static function set TimeString (Value : String)
Property ValueReturns or sets a String value representing the current time of day according to your system.
For more detailed information, see the Visual Basic topic TimeString Property.
TimeString always returns the system time as "HH:mm:ss", which is a 24-hour format. This format is culture-invariant, which means it does not change even if you change the Regional Options in Control Panel.
To get or set the current system date as a String, use the DateString Property.
To get the current system date or time in the format of your locale, or in a custom format, supply the Now Property to the Format Function, specifying either Predefined Date/Time Formats (Format Function) or User-Defined Date/Time Formats (Format Function). The following example demonstrates this.
MsgBox("The formatted time is " & Format(Now, "hh.mm.ss.fff tt"))
To access the current system time as a Date, use the TimeOfDay Property.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.