It's surprising that a "URL" is represented by something called template.HTML, even if it's just a string under the hood. This breaks calling .GetPage with the output of relLangURL. @jmooring: ref, ...
When you want to replace a string from other string in a string then you can use REPLACE function. REPLACE function returns the string str with all occurrences of the string from Str and replace it by ...
Building on the DATETIMEFROMPARTS, DATETIME2FROMPARTS offers similar functionality, but yields more precise DateTime2 data type, containing fractions of a second to a specified precision. Naturally, ...