Returns a formatted string representing the elapsed time span since the specifiedDateTimevalue until now.

Syntax

Smartsite SXML CopyCode image Copy Code
string locale.formattimespan(datetime from)
string locale.formattimespan(datetime from, datetime to)
string locale.formattimespan(datetime from, datetime to, string culture)
string locale.formattimespan(datetime from, string culture)

Parameters

Name Data Type Description
from DateTime A DateTime value in the past.
to DateTime The end DateTime value.
culture String The culture.

Return Value

Data Type Description
String A formatted string value.
SXML