Home > Language Reference > Date/Time Functions > Time$

Time$

The Time$ function returns the current time.

Usage

Used for example to concatenate today's date with a filename.

Syntax

var$=Time$()

Parameter

None.

Return value

var$, string, current time. The format of the returned time is the one specified in Region and Language Settings. A usual format is 10:25:30

See also

Date$
DateBetween
DateToDate$
Day$
Hour$
Hundreds
Min$
Month$
Sec$
WeekDay
Year$

Example

msgbox(Time$())