Is there any tool to convert VBscript code to VB.net Code or C#.net?
this is the sample code I want to convert it
Dim googleTime, googleDt, googleScheme
googleTime = DateDiff("s", "01/01/1970 00:00:00", Now())
googleDt = (1000 * googleTime) + Round(1000 * (Timer - Int(Timer)))
googleScheme = "http://"
googleUserAgent = Server.URLEncode(Request.ServerVariables("HTTP_USER_AGENT"))
If StrComp(Request.ServerVariables("HTTPS"), "on") = 0 Then googleScheme = "https://"
for example Timer in VBscript I did not find any equivalent in VB.Net
Please advice.
“The Timer function returns the number of seconds, and milliseconds, since 12:00 AM.”
http://www.w3schools.com/vbscript/func_timer.asp
is the equivalent.