Current Time
Unix Seconds
-
Unix Milliseconds
-
Current ISO UTC
-
Unix Timestamp Input
Converted date output will appear here...
Date Input
Converted timestamp output will appear here...
Local Date & Time
-
UTC Date & Time
-
ISO 8601
-
Unix Seconds
-
Unix Milliseconds
-
Timezone Offset
-
`Date.parse()` returns a timestamp in milliseconds for valid date strings and returns `NaN` for unrecognized input, while `toISOString()` produces a UTC ISO 8601 string ending with `Z` [web:582][web:586].
How it works
JavaScript timestamps are commonly represented as milliseconds since the Unix epoch, and `Date.now()` returns the current time in that format [web:597][web:572]. `Date.parse()` converts valid date strings into timestamps, while `Date.prototype.toISOString()` formats a date in simplified ISO 8601 UTC notation with a trailing `Z` [web:582][web:586].
- Unix timestamps may be expressed in seconds or milliseconds depending on the system [web:572][web:597].
- `Date.parse()` returns `NaN` when a date string cannot be parsed [web:582][web:594].
- `toISOString()` always returns a UTC-based string format [web:586][web:596].