InputDate(Prompt: String[, Title: String, Default: Date]): Date
Displays a prompt in a dialog box, User must input a valid date or click a button, and returns a date containing the contents of the date box.
Notes: If User clicks OK or presses Enter InputDate function returns what is in the date control (current machine date if no value entered). If User clicks Cancel or presses Esc, function returns Null.
InputDate function syntax has these named arguments:
Parameter |
Description |
|---|---|
Prompt |
Required. String expression displayed as the message in the dialog box. |
Title |
Optional. String expression displayed in the title bar of the dialog box. If you omit title, the application name is placed in the title bar. |
Default |
Optional. Date expression displayed in the date control as the default response if no other input is provided. If you omit default, the date control is displayed empty. |
See also Scripted Form InputDate method and Input Grid InputDate method.