Skip to content
0

katanakit-js / useNowDateTime

Function: useNowDateTime() ​

ts
function useNowDateTime(): string;

Defined in: src/core/services/dates.service.ts:622

Returns the current date and time as an ISO string (no timezone offset).

Returns ​

string

The current date-time in YYYY-MM-DDTHH:MM:SS format.

Example ​

ts
useNowDateTime(); // "2024-06-15T14:30:00"

Released under the MIT License.