You don’t need to do anything, it’s automatic. The code will directly by your system write your greeting according to your local time with a time-aware.
You can edit the greeting there to suit your needs or even add your name after it.
Personally I’m using this for my Daily Note, but you can use it for your homepage or anythings you want.
I’m sharing this because I think it’s nice to have a welcome message in our homepage :).
Copy
```dataviewjs
const currentHour = moment().format('HH');
console.log(currentHour)
let greeting;
if (currentHour >= 18 || currentHour < 5) {
greeting = '🌙 Good Evening'
} else if (currentHour >= 5 && currentHour < 12) {
greeting = '🌞 Good Morning'
} else {
greeting = '🌞 Good Afternoon'
}
dv.header(2, greeting)
```