String.concat(string1, string2, ...) Last updated: 13. Nov 2023

Combines multiple strings into one string. Function may be called with one or a "whole bunch" of strings in as parameters.

Parameters

Name Type Description
string1 string First string to concat.
string2 string Second string to concat.
... ... etc

Returns

A modified date and time object, does not modify input date.

Example

Code example (#JS)

#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.
#{
    var dt = new Date(); // Create new date and time object
    
    write("Before: ");
    write(docly.format(dt, "HH:mm")); // output time
    
    dt = docly.AddMinutes(dt, 5); // Add 5 minutes
    write(" After: ");
    write(docly.format(dt, "HH:mm")); // output time
}#

Output

The #JS code above produces the output shown below:
Before: 21:19 After: 21:24