shared/src/types/isodate-types
Type Aliases
| Type Alias | Description |
|---|---|
| ISOString | Represents an ISO 8601 date string (e.g., "2024-07-31T14:30:00.000Z") This is a branded type to ensure type safety when working with date strings |
Functions
| Function | Description |
|---|---|
| fromISOString | Converts an ISO string back to a Date object |
| isISOString | Type guard to check if a string is a valid ISO date string |
| nowAsISOString | Creates an ISO string from the current date/time |
| parseISOString | Safely parses a string to an ISO string with validation |
| toISOString | Creates an ISO string from a Date object |