Date Helpers API reference for Date Helpers in Semantic UI's reactivity system calendar API Reference
Categories

Date Helpers

Signal instance helpers for Date values. Available when the signal holds a Date (or is null/undefined).

Updating

now

signal.now();

Sets the value to the current date and time.

now() is present only when the signal’s value is a Date, or null/undefined.

Returns

Nothing. The signal is updated in place and dependents re-run if the value changed.

Usage

import { signal } from '@semantic-ui/reactivity';
const lastSeen = signal(new Date());
// later, stamp the moment
lastSeen.now();

Example

Previous
Collection Helpers
Next
Query