Home > @uniformdev/design-system > useDateTimePickerContext

useDateTimePickerContext() function

Use this context for slots within the date time picker in order to manipulate the current value

Signature:

declare function useDateTimePickerContext(): {
    clearValue(): void;
    changeDate(isoDate: IsoDateString): void;
    changeTime(isoTime: IsoTimeString): void;
};

Returns:

{ clearValue(): void; changeDate(isoDate: IsoDateString): void; }