Category "dayjs"

yup date validation - Start Date must not be same as end date

I am currently stuck on how to do validation with yup for same date. Currently I am able to validate if endDate is not before startDate using : schema = yup.obj

dayjs is not converting timezones properly

I'm trying to convert a date from my local time (Taipei UTC+8) to Los Angeles ( UTC-7) however dayjs conversion seems to be completely off : dayjs("2020-09-21 2

TypeError: (0 , _dayjs.Dayjs) is not a function

I want to replace momentjs with dayjs right now. First I added the dependencies: "dayjs":"1.10.7" then import the dayjs like this: import { Dayjs } from 'dayjs