Hi,
You had 2 parts to your original question:
How to get your date from a textbox or from a Date Picker.
To do any date manipulation, you need to turn your node content into a date.
Starting from a string (which is what you now decided to do) is easier.
From a date picker, you will need that extra ISO 8601 conversion.
At the end of the day, it is the same date manipulation in VBScript (see the
link in my previous post).
Hope that it helps.
Regards,
Franck Dauché
> (Also posted in the other forum by accident)
> Thanks, I got the code to work (below). Would you know the statement to
[quoted text clipped - 33 lines]
>
> End Sub
obespalov@gmail.com - 04 Nov 2005 22:03 GMT
Finally, here is the solution. I am posting here for others searching
in the future...
Dim objField
Set objField =
XDocument.DOM.selectSingleNode("//my:myFields/my:Date_Interview")
if objField.text <> "" then
Const olAppointmentItem = 1
Set objOutlook = CreateObject("Outlook.Application")
Set objAppointment =
objOutlook.CreateItem(olAppointmentItem)
dim theDate
theDate = objField.text
theDate = DateAdd("D", 7, theDate)
theDate = theDate & " 9:00 AM"
objAppointment.Start = theDate
objAppointment.Duration = 60
objAppointment.Subject = "Complete Applicant Review"
objAppointment.Body = "Make sure all feedback is
complete and create feedback summary."
objAppointment.Location = ""
objAppointment.ReminderMinutesBeforeStart = 15
objAppointment.ReminderSet = True
objAppointment.Save
End if