34
Views
3
Comments
Greetings according to system time
Question

we would like to know how to print greetings like good morning ,good afternoon on the home screen according to the system time.

Hi Geethu Mathew,

You can use...

CurrDateTime(),CurrTime()


Thanks,

Ramakrushna Rao Seera

Rank: #2259

Hi @Ramakrushnarao Seera,


And how do use it so the systems can show "Good Morning" or "Good Afternoon"?

I create an IF and then put an expression inside it. Using CurrTime() function can't be used as "less", "bigger",...


Best regards

Rank: #2259

I don't know if this is the correct way to do it but I created an IF and in the condition put this:


TextToInteger(FormatDateTime(CurrDateTime(),"HHMM")) < 1200

Converted Time to Text and then Text to Integer