NeerajMalhotra
NeerajMalhotra

Reputation: 21

Dayjs Getting incorrect timestamp & date

Dayjs object shows correct date & time but when converting it to iso string or timestamp. i am getting incorrect values. here is the code -

console.log("updated date",
      date, date.valueOf(),
      date.toISOString(),
    );

console output

i am expecting correct date time & timestamp values

Upvotes: 0

Views: 25

Answers (0)

Related Questions