TimeValue function (LotusScript® Language)

Returns the time value represented by a string expression.

Syntax

TimeValue ( stringExpr )

Elements

stringExpr

A string expression that represents a valid date/time, or a Variant of DataType 7 (Date/Time). It can use either 12-hour or 24-hour format; for example, both "14:35" and "2:35PM" are valid. If you omit the seconds value in the stringExpr argument, it defaults to zero (0).

Return value

TimeValue returns a Variant of DataType 7 that contains a fractional date/time value.

Usage

If stringExpr specifies a date, TimeValue validates the date, but omits it from the return value.

Example