String Format Example

Demonstrates the string format viper

Smartsite SXML CopyCode image Copy Code
{buffer.set(date, datetime.getdate(2008,5,8))}

{string.format('Hello {0}, the date is {1:f}', you, $date)}
Example Result CopyCode image Copy Code
Hello you, the date is Thursday, 08 May 2008 00:00
SXML