RunKit + npm: date-fns

node v10.24.1
version: master
endpointsharetweet
const faIR = require('date-fns/locale/faIR'); const fr = require('date-fns/locale/fr'); const format = require('date-fns/format'); const patern = 'PPpp'; console.log(format(new Date(2016, 0, 1), patern, {locale: null})); console.log(format(new Date(2016, 0, 1), patern, {locale: faIR}));
Created from: https://npm.runkit.com/date-fns
Loading…

no comments

    sign in to comment