Module

std/datetime/mod.ts>parseDateTime

Deno standard library
Go to Latest
function parseDateTime
import { parseDateTime } from "https://dotland.deno.dev/std@0.36.0/datetime/mod.ts";

Parse date & time from string using format string

Parameters

datetimeStr: string

Date & time string

format: DateTimeFormat

Format string

Returns

Date

Parsed date