What is the vb.net or c# equivalent of the following javascript?
this.browserTime.value = Math.floor((new Date()).getTime() / 1000);
I'm using httpwebrequest to login in to a site.
PostData header recorded from the browser looks like:
goto=¤tSlave=235acbdcd297c9211eef670c6dfbd64d&browserTime=1245052940&username=username&password=password&go=Sign+In
and the javascript on the page that gets the browsertime value is:
this.browserTime.value = Math.floor((new Date()).getTime() / 1000);
thanks