Google Apps Script API
    Preparing search index...

    A question item that allows the respondent to indicate a date and time. Items can be accessed or created from a Form. When used in a quiz, these items are graded.

    // Open a form by ID and add a new date-time item.
    var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
    var item = form.addDateTimeItem();
    item.setTitle('When do you want to meet?');
    
    interface DateTimeItem {
        createResponse(response: GoogleAppsScript.Base.Date): ItemResponse;
        duplicate(): DateTimeItem;
        getGeneralFeedback(): QuizFeedback;
        getHelpText(): string;
        getId(): number;
        getIndex(): number;
        getPoints(): number;
        getTitle(): string;
        getType(): ItemType;
        includesYear(): boolean;
        isRequired(): boolean;
        setGeneralFeedback(feedback: QuizFeedback): DateTimeItem;
        setHelpText(text: string): DateTimeItem;
        setIncludesYear(enableYear: boolean): DateTimeItem;
        setPoints(points: number): DateTimeItem;
        setRequired(enabled: boolean): DateTimeItem;
        setTitle(title: string): DateTimeItem;
    }
    Index

    Methods