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'); 套件 Day.js