Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/core/source.ts>parseDate

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function parseDate
import { parseDate } from "https://deno.land/x/lume@v1.19.2/core/source.ts";

Parse a date/datetime

Filenames can be prepended with a date (yyyy-mm-dd) or datetime (yyyy-mm-dd-hh-ii-ss) followed by an underscore (_) or hyphen (-).

Parameters

slug: string

Returns

[string, Date | undefined]