How to get the time when the user starts a conversation?

Good morning, how can I get the bot time? Because I made a validation to bring me the good morning, good afternoon and good night according to the time but with the getHours it only brings me another hour. How could I get the exact time of the bot, when a user logs in?


Kore provides a pre-written JavaScript functions library that can be leverages to format the date/ time capture when user connects to the bot.

Let us know if this helps the usecase.