import dayjs from "dayjs";
import customParseFormat from "dayjs/plugin/customParseFormat";
dayjs.extend(customParseFormat);
when executing something like this "dayjs().format('18:00', "hh:mm A");"
, it does not convert to 12 hr timing.... returns 18:00
How do i get outputs converted using dayjs like:
08:00 -> 08:00 AM
18:00 -> 06:00 PM