TIME - Statement

TIME()

Defines the current system time.


REMARKS
* The time argument can be any numeric expression, string expression or any combination that represents a time.
* If the time is a string then this is converted into a time using the time separators specified in your local settings.
* This statement should be prefixed with "VBA." to make the code easier to understand.
* You can use the DATE Function to return the current system date.
* You can use the DATE Statement to set the current system date.
* You can use the TIME Function to return the current system time.
* You can use the NOW function to return the current system date and time.
* For the Microsoft documentation refer to learn.microsoft.com

VBA.Time = "00:00:00" 
VBA.Time = #6:30:15#

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top