Calculate GMT Time with VBScript 
Author Message
 Calculate GMT Time with VBScript

Is there a way to get the Grenich Mean Time (GMT) using VBScript? If
not, is there a way to convert a Javascript variable to a VBScript
variable in an ASP page?

I am able to get the GMT in javascript with the following code, but I
need to use the results in VBScript.

<script language="JavaScript" type="text/javascript">
<!--
  myDate = new Date()
  GMTime = myDate.toGMTString()
  document.write (GMTime)
-->
</script>

* Sent from RemarQ http://www.*-*-*.com/ The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



Tue, 21 Jan 2003 03:00:00 GMT  
 Calculate GMT Time with VBScript
Is there a way to get the Grenich Mean Time (GMT) using VBScript? If
not, is there a way to convert a Javascript variable to a VBScript
variable in an ASP page?

I am able to get the GMT using javascript with the following code, but
I need to use the result in VBScript.

<script language="JavaScript" type="text/javascript">
<!--
  myDate = new Date()
  GMTime = myDate.toGMTString()
  document.write (GMTime)
-->
</script>

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



Tue, 21 Jan 2003 03:00:00 GMT  
 Calculate GMT Time with VBScript

<HTML>
<head>
<script language="JavaScript">
function GMTime()
{
    return new Date().toGMTString();

Quote:
}

</script>
<script language="VBScript">
Dim GMT
GMT = GMTime()
MsgBox GMT
</script>
</head>
</HTML>


: Is there a way to get the Grenich Mean Time (GMT) using VBScript? If
: not, is there a way to convert a Javascript variable to a VBScript
: variable in an ASP page?
:
: I am able to get the GMT in javascript with the following code, but
I
: need to use the results in VBScript.
:
: <script language="JavaScript" type="text/javascript">
: <!--
:   myDate = new Date()
:   GMTime = myDate.toGMTString()
:   document.write (GMTime)
: -->
: </script>
:
:
: * Sent from RemarQ http://www.remarq.com The Internet's Discussion
Network *
: The fastest and easiest way to search and participate in Usenet -
Free!
:



Tue, 21 Jan 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. how to calculate the GMT (greenwich mean time)

2. calculating the GMT from current time

3. How to get the GMT Time using VBScript?

4. Formatting Time to GMT when current Time Zone not known

5. GMT time, BootUp time

6. Calculating Time Difference using DateDiff Function in VBScript

7. Calculating Time Difference with DateDiff Function in VBScript

8. Finding Timezone to Calculate GMT

9. converting PST/PDT time to GMT time

10. How to Convert GMT(Greenwich) Time to short date and time and vice versa

11. Function to return CST time given GMT time?

12. calculate dates calculate time

 

 
Powered by phpBB® Forum Software