I have an ISO date which is stored as a string. I want to get only the hours part as is. The below code does not work. So, how do I make it work using dayjs?
function getHours(date:string){
const hour : dayjs(date).hour();
console.log(hour);
}
getHours("2023-05-06T08:00:00Z");//Expected 8, but got 1.