Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: date-fns
node v10.24.1
version:
master
endpoint
share
tweet
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