Skip to content

parseMillisecondFromDateTime

  • The core functions, which every industry uses.
parseMillisecondFromDateTime(value: string): string

Return the millisecond (0-999) for a given ISO 8601 datetime string.

  • Returns zero-padded string for millisecond.
  • Returns "" for invalid input.
ParameterTypeDescription
valuestringISO datetime string

Millisecond (000-999) or "" on invalid input

import { parseMillisecondFromDateTime } from "@northguild/gmt/plain/parse";
parseMillisecondFromDateTime("2024-03-15T14:30:45.123") // "123"
output 

plain/parse/parseMillisecondFromDateTime.ts

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.