Skip to main content
Module

x/simple_utility/mod.ts>timeFormatSerialize

Simplify processing for Deno.
Latest
function timeFormatSerialize
import { timeFormatSerialize } from "https://deno.land/x/simple_utility@v2.1.0/mod.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