none
Handle different international time zones RRS feed

  • Question

  • Hi Friends,

    My mail goal is to get the UTC time for local zone. I am facing problems in handling internation time zones in VBScript. Could any one tell me in brief/code to handle different international time zones. I thought of the below solution:
            
    1. Get the UTC time
    2. Get the time difference with local zone
    3. Add it to UTC.

    Is there any ways to do this in VBScript?

    Thanks in Advance,
    Megha

      
    • Edited by CSharpLeader Monday, August 4, 2008 12:14 PM adding
    • Moved by Riquel_DongModerator Wednesday, August 6, 2008 8:20 AM VBscript issue is off-topic here (Moved from Visual Basic Language to Off-Topic Posts (Do Not Post Here))
    Monday, August 4, 2008 12:11 PM

Answers

  • MeghaP said:

    Hi Friends,

    My mail goal is to get the UTC time for local zone. I am facing problems in handling internation time zones in VBScript. Could any one tell me in brief/code to handle different international time zones. I thought of the below solution:
            
    1. Get the UTC time
    2. Get the time difference with local zone
    3. Add it to UTC.

    Is there any ways to do this in VBScript?

    Thanks in Advance,
    Megha

      

    Hi,

    Try the VBScript forum please.>>

    This forum is for VB.Net questions only,sorry.





    Regards,

    John


    I have previously been, until recently, an MSP ( Microsoft Student Partner ).
    Monday, August 4, 2008 12:27 PM

All replies

  • in visual basic

            Dim testTime As DateTime = DateTime.Now  
            Debug.WriteLine(testTime.ToString)  
            Debug.WriteLine(testTime.ToUniversalTime.ToString)  
     
    i don't know if vbscript has that?
    Monday, August 4, 2008 12:24 PM
  • MeghaP said:

    Hi Friends,

    My mail goal is to get the UTC time for local zone. I am facing problems in handling internation time zones in VBScript. Could any one tell me in brief/code to handle different international time zones. I thought of the below solution:
            
    1. Get the UTC time
    2. Get the time difference with local zone
    3. Add it to UTC.

    Is there any ways to do this in VBScript?

    Thanks in Advance,
    Megha

      

    Hi,

    Try the VBScript forum please.>>

    This forum is for VB.Net questions only,sorry.





    Regards,

    John


    I have previously been, until recently, an MSP ( Microsoft Student Partner ).
    Monday, August 4, 2008 12:27 PM