0

How to change the text according to the current time

I have a website and I want to make a welcome by displaying (good morning) (good afternoon) and something like that what is the code for that

12/10/2019 7:43:47 PM

Eyad Farah

1 Answer

New Answer

0

https://www.w3schools.com/js/js_date_methods.asp Put the getHours() in a ternary.