+1

How to wish (live/Dynamic) based on live Time.

Wishings like Good Morning/ Good Afternoon, ...

1/23/2020 11:14:58 AM

Shashank Reddy Voorelli

2 Answers

New Answer

+1

JS, for instance, provides access to the Date class. let timeNow = new Date(); console.log(timeNow.getHours() + ":" + timeNow.getMinutes()) From here, you deduce your greetings accordingly using conditional statements.

+1

Shashank Reddy Voorelli You can also use the "Triggers" for any live event listener. Jquery has an api for triggers which can easily be used https://stackoverflow.com/questions/2490825/how-to-trigger-event-in-javascript https://api.jquery.com/trigger/