No worries Isabella. You can convert UTC to local timezone by adjusting the offset as below
Original Message:
Sent: 07-17-2024 02:32
From: Isabella Clutterham
Subject: Display day name in communication to customer
Thank you Muhammad, that worked perfectly.
I wonder if you can also please suggest how I can convert from UTC to the user's local date and time? (Or failing that, to a pre-set timezone)
This is the expression in its current form:
Happy {{GetAt(Flow.dayName, DayOfWeek(Flow.StartDateTimeUtc)-1)}}
!
Thanks again,
Isabella
------------------------------
Isabella Clutterham
Automation Solution Analyst & Developer
BEYOND BANK AUSTRALIA
Original Message:
Sent: 07-17-2024 00:56
From: Muhammad Zubair Awan
Subject: Display day name in communication to customer
Hi Isabella,
Create a String Collection variable with days of the week, Sun/Mon/Tue/Wed/Thu/Fri/Sat - Lets say you created Task.myList
Then a String variable to get the current day with following expression using Update Data
GetAt(Task.myList, (Insert here your Variable/Expression that is Returning 3)-1)
Hope it helps.
------------------------------
Cheers
Zubair
Original Message:
Sent: 07-16-2024 23:15
From: Isabella Clutterham
Subject: Display day name in communication to customer
Hi there,
I am looking to update my chat bot to say, for example "Happy Tuesday!"
Currently I have been able to get the day of the week as an integer to display for example "Happy 3!"
Can you please direct me in how to convert those integers into a string?
I wondered if an If() statement would work, nested for each day of the week but I'm having trouble configuring the syntax and hoped there might be a more simple solution.
Your help would be very much appreciated,
Isabella
#ConversationalAI(Bots,AgentAssist,etc.)
------------------------------
Isabella Clutterham
Automation Solution Analyst & Developer
BEYOND BANK AUSTRALIA
------------------------------