Use parseISO: import { format, parseISO } from 'date-fns' const formattedDate = format(parseISO('2019-02-11T14:00:00'), 'MM/dd/yyyy'); ...
確定! 回上一頁