dayjs-plugin-strftime

    1.0.1 • Public • Published

    dayjs-plugin-strftime

    GitHub last commit npm

    Adding strftime to day js.

    It is just a dayjs wrapper around strftime. Go there about customization

    examples

    const dayjs = require("dayjs");
    const strftime = require("dayjs-plugin-strftime");
    
    dayjs.extend(strftime);
    
    // this can be any dayjs object
    let now = dayjs();
    
    // 2021-06-07 12:01:45
    now.strftime("%F %T");

    localization is done by:

    const dayjs = require("dayjs");
    const strftime = require("dayjs-plugin-strftime");
    
    dayjs.extend(strftime);
    
    let now = dayjs();
    
    // 25 januari, 2019 00:00:00
    now.strftime("%d %B, %Y %H:%M:%S", "nl_NL");

    Install

    npm i dayjs-plugin-strftime

    DownloadsWeekly Downloads

    4

    Version

    1.0.1

    License

    Unlicense

    Unpacked Size

    2.24 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar