TextSetDateTime()

Inserts a date and time in the Appointment date and time text boxes of an Appointment view.

Token ID

AFTKN_SET_DATETIMEDUR or 584

Syntax

TextSetDateTime( [WORD StartDay]; 
                      [WORD StartMonth]; 
                      [WORD StartYear]; 
                      [WORD StartMinute]; 
                      [WORD StartHour]; 
                      [WORD EndDay]; 
                      [WORD EndMonth]; 
                      [WORD EndYear]; 
                      [WORD EndMinute]; 
                      [WORD EndHour]; 
                      [WORD DurationMinutes]; 
                      [WORD DurationHours])

Parameters

StartDay As WORD

(Optional) Day when the appointment starts.

StartMonth As WORD

(Optional) Month when the appointment starts.

StartYear As WORD

(Optional) Year when the appointment starts.

StartMinute As WORD

(Optional) Minute when the appointment starts.

StartHour As WORD

Military time (24-hour clock). (Optional)

EndDay As WORD

(Optional) Day when the appointment ends.

EndMonth As WORD

(Optional) Month when the appointment ends.

EndYear As WORD

(Optional) Year when the appointment ends.

EndMinute As WORD

(Optional) Minute when the appointment ends.

EndHour As WORD

(Optional) Military time (24-hour clock).

DurationMinutes As WORD

(Optional) Number of minutes that the appointment lasts (in addition to the number of hours).

DurationHours As WORD

(Optional) Number of hours that the appointment lasts.

Remarks

If Date Time Options, Calendar Tab, Appointment Options, or Display Event Length is set to Duration, do not use End parameters. If Date Time Options, Calendar Tab, Appointment Options, or Display Event Length is set to End Date and End Time, do not use Duration parameters. (See PrefAppointmentTime().)