If else conditions should be able to get the computer date and time

I am working on a customer chat, and it would be nice to have the if else conditions for a "Have a great day" to "Have a great evening" depending on the time of the day.

Hi @Mark_Drongesen, welcome to the forum.

You can already do that using time command! Here is the link to a thread with similar discussion.

1 Like

@Mark_Drongesen - in addition to what Aditya has provided, here are two ready-made snippets you can grab from the forum:

1 Like