faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems : Times/Dates

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

24 of 30 people (80%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

Where can I find a program to handle GMT conversions?

Jun 27th, 2001 14:58
Chris Durkin, unknown unknown,


This link might help you build your own:
http://www.marineweather.com/utcgmt.htm
FYI, "UTC" is the same as "GMT".
-------------------
VBScript has no built in function to do GMT conversion, but JScript 
does. Both languages can be used in an ASP page, and VBScript routines 
can access variables defined in JScript routines! So, you could do the 
following:
<script language="JScript" runat="Server">
  var dt = new Date();
  var datestr = dt.toGMTString();
  response.write("Today's Date is " + datestr);
</script>
<br><br>
Today's date is <%=datestr%>
-CD



© 1999-2004 Synop Pty Ltd