I'm using the folloing function to get current date
But I get the following error
<script language="VB" runat="server">
public function stl() As Date
dim d as date
d = Date()
Where am I wrong?
Compiler Error Message: BC30108: 'Date' is a type, and so is not a valid expression. Expected a variable, constant, or procedure.
Line 11: public function stl() As Date
Line 12: dim d as date
Line 13: d = Date()
Line 14: return d
Line 15: end function
Source File: C:\WebServers\Gazeta\1.aspx Line: 13