chopDate
Signature
Section titled “Signature”chopDate(value: string): stringReturn the PlainTime portion extracted from an ISO PlainDateTime string.
- Extracts time components from a PlainDateTime.
- Returns "" for invalid input.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | string | ISO PlainDateTime string |
Returns
Section titled “Returns”ISO PlainTime string or "" on invalid input
Examples
Section titled “Examples”import { chopDate } from "@northguild/gmt/plain/chop";
chopDate("2024-02-29T12:34:56") // "12:34:56"