date-fns date-fns - modern JavaScript date utility library npm i date-fns -S import { format } from 'date-fns' format(new Date(), 'MMMM dd, yyyy pp');