Skip to main content


Requests a date & time.


const datetime = await io.experimental.datetime("Date & time");


defaultValueOptional objectDefault value for the input.
helpTextOptional stringOptional label providing additonal context.
maxOptional objectLatest possible datetime value for the input.
minOptional objectEarliest possible datetime value for the input.

Returns: Object

dayRequired numberThe day of the month of the provided datetime.
hourRequired numberThe hour in the day of the provided datetime, 0-23.
jsDateRequired DateJavaScript Date object containing the datetime values.
minuteRequired numberThe minute of the provided datetime.
monthRequired numberThe calendar month of the provided datetime, 1-12.
yearRequired numberThe year of the provided datetime.
Did this section clearly explain what you wanted to learn?
On this page