I would like to convert this string 2022-06-01T14:42:52+00:00 using date-fns.
The problem is that its outputting Invalid time value
Code
import { format } from 'date-fns'
let deadlineDate = '2022-06-01T14:42:52+00:00'
console.log(format(deadlineDate, `yyyy-LL-dd`))