On This Page
Updating
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.
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 momentlastSeen.now();