Function MomentToString(Format, unit, ReferenceDate, Elapsed)


The function MomentToString creates a string representation of a moment, that is calculated from a given amount of elapsed time since a specific reference date.

     Format,                 ! (input) a string expression
     unit,                   ! (input) a time unit
     ReferenceDate,          ! (input) a string expression
     Elapsed                 ! (input) a numerical expression


A string that holds the date and time format used in the returned string. Valid format strings are described in Section 33.7.
The time unit that is used in the argument Elapsed.
A string that holds the begin date using the fixed format for date and time, see paragraph Reference date format on page 544 of the Language Reference.
A numerical value of the time elapsed since ReferenceDate.

Return Value

The result of MomentToString is a string describing the corresponding moment according to Format.

See also

The function StringToMoment.