Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function timeFormatSerialize
import { timeFormatSerialize } from "https://deno.land/x/simple_utility@v2.1.0/mod.pure.ts";

Serialize from Date or UNIXTIME or formatted datetime string to "yyyyMMddhhmmss". If no args will be current time.

Examples

Example 1

const format = timeFormatSerialize();

Parameters

optional
dt: Date | number | string
optional
split: boolean

Returns

string