I have following VBScript in XSLT:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="http://www.global-health.com"
>
<msxsl:script language="VBScript" implements-prefix="user">
<![CDATA[
...
Function Today()
Today= year(Date) & "-" & LeadNumWith0(month(Date)) & "-" & LeadNumWith0(day(Date))
End Function
]]>
</msxsl:script>
</xsl:stylesheet>
If I use VS 2019 XSLT Debugger to exectue above stylesheet, I will get an error : 'Public Function Year(DateValue As Date) As Integer' has no type parameters and so cannot have type arguments. It works if I change function Date to Now, both Date and Now are valid VBScript function, why Date doesn't work?