Smartsite SXML CopyCode image Copy Code
{buffer.set(startDate, datetime.getdate(2008,7,15, 10, 10, 23))}
{buffer.set(endDate, datetime.getdate(2008, 7, 16, 17, 58, 20))}

Time between {locale.formatdatetime($startDate)} and {locale.formatdatetime($endDate)}:

Total Days: {datetime.daysbetween($endDate, $startDate)}
Total Hours: {datetime.hoursbetween($endDate, $startDate)}
Total Minutes: {datetime.minutesbetween($endDate, $startDate)}
Total Seconds: {datetime.secondsbetween($endDate, $startDate)}
Total Milliseconds: {datetime.millisecondsbetween($endDate, $startDate)}
Example Result CopyCode image Copy Code
Time between 2008-07-15 10:10:23 and 2008-07-16 17:58:20:

Total Days: 1.32496527777778
Total Hours: 31.7991666666667
Total Minutes: 1907.95
Total Seconds: 114477
Total Milliseconds: 114477000