Function CurrentToString(Format)

CurrentToString

The function CurrentToString creates a string representation of the current time in the a specified format.

CurrentToString(
     Format           ! (input) a string expression
     )

Arguments

Format

A string that holds the date and time format used in the returned string. Valid format strings are described in Format of Time Slots and Periods

Return Value

The result of CurrentToString is a description of the current time according to Format.

Note

There is an option Current_Time_in_LocalDST that specifies whether this function takes into account the effects of daylight savings time.

See also