VBScript to create outlook appointment

Hi,

I have a following vbscript which creates the outlook appointments at the specified time and date.

How do I add the time zone to it so that the appointment gets created based on the specified time zone.

Thanks
Dim objOL   'As Outlook.Application
    Dim objAppt 'As Outlook.AppointmentItem
    Const olAppointmentItem = 1
    Const olMeeting = 1
    
    Set objOL = CreateObject("Outlook.Application")
    Set objAppt = objOL.CreateItem(olAppointmentItem)
	
    With objAppt
        .Subject = "Test"
	.Body = "Test"
        .Start = ("04/9/2010 8:00 AM")
	.End = DateAdd("h", 1, .Start)
	       
        ' make it a meeting request
        .MeetingStatus = olMeeting
        .RequiredAttendees = "abc@xyz.com"
        .Send
    End With
    
    Set objAppt = Nothing
    Set objOL = Nothing

Open in new window

Shiva-KumarAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Patrick MatthewsConnect With a Mentor Commented:
Shiva-Kumar,

The appointment will be created using whatever time zone that user has indicated in the Outlook calendar options is his/her primary time zone.

Patrick
0
 
Shiva-KumarAuthor Commented:
True, but what i am looking for is a solution to specify the time zone while sending the request.

0
 
Patrick MatthewsConnect With a Mentor Commented:
There is no way to do that directly.  What you could do is adjust the start time of the appointment to reflect the time zone offset relative to the user's normal time zone.  That, however, is not necessarily straightforward because then you would have to take Daylight Saving Time / Summer Time into account.
0
 
Shiva-KumarAuthor Commented:
Thank u
0
All Courses

From novice to tech pro — start learning today.