Skip to main content

io.experimental.datetime

Requests a date & time.

Usage

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

Props

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