import React, { useState } from "react"; import { UTCDate } from "@date-fns/utc"; import { DayPicker } from "react-day-picker/utc"; export function Utc() { const [selected, setSelected] = useState(new UTCDate()); return ( { setSelected(date); }} footer={selected ? `${selected.toUTCString()}` : null} /> ); }