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

x/lume/core/utils/date.ts>parseDateFromBasename

🔥 Static site generator for Deno 🦕
Very Popular
Latest
function parseDateFromBasename
import { parseDateFromBasename } from "https://deno.land/x/lume@v2.4.1/core/utils/date.ts";

Parse a date/datetime from a basename.

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

Parameters

basename: string