Joins a date-time pair into a date-time string.

Type signature

(date: string, time: string) => string

Examples

joinDateTime(
  "2019-01-15",
  "13:54:33.232Z"
);
// ⇒ "2019-01-15T13:54:33.232Z"
Try in REPL

Questions

  • How to join date and time to get ISO-compliant date-time string?

TypeScript sourceJavaScript source