const currentDay = new Date().getDay(); return currentDay >= 1 && currentDay <= 5;
const currentHour = new Date().getHours(); return currentHour >= 9 && currentHour < 17;
//Weekday long form
const options = { weekday: 'long' };
return new Date().toLocaleDateString('pt-BR', options).split(',')[0];
//Hour:
const options = { timeZone: 'America/Sao_Paulo' };
return new Date().toLocaleTimeString('pt-BR', options).split(':')[0];