I use Dayjs library for date parsing/manipulation in nodejs. Consider a date = "2023-07-21T12:00:00+05:00". When I try to get utcOffset by using dayjs(date).utcOffset() it returns "60" in minutes, although offset in minutes of given date is "300".
I think it coverts the date into local-timezone where server is hosted and returns that utcOffset. But I want to extract offset from the given date like in this case "+05:00" or "300" in minutes. I tried string split method but that is not good as date format may change. Thanks in advance.