Original Message:
Sent: 01-10-2024 13:39
From: Anton Vroon
Subject: Set timezone UTC+7 in call flow and show on script
If all you want is to add 7 hours to the datetime to have utc+7, you can just adjust the expression you already have.
So something like
Append(ToString(Day(Flow.StartDateTimeUtc)),"/",ToString(Month(Flow.StartDateTimeUtc)),"/",ToString(Year(Flow.StartDateTimeUtc))," ", ToString(Hour(Flow.StartDateTimeUtc) + 7),":",ToString(Minute(Flow.StartDateTimeUtc)),":",ToString(Second(Flow.StartDateTimeUtc)))
Just be mindful that Scripter might recognize this as a datetime and try to reformat it, in which case you would need to do the in scripter date time formatting.
------------------------------
Anton Vroon
Original Message:
Sent: 01-10-2024 10:46
From: Nuttapong Limadisai
Subject: Set timezone UTC+7 in call flow and show on script
@Johnson Lu
Where did you create flow.ddmmyy? Can you show it to me?
and you can show type statement in UTC8_OnlyDate?
------------------------------
Nuttapong Limadisai
G-Able Public Company Limited
Original Message:
Sent: 01-10-2024 03:39
From: Johnson Lu
Subject: Set timezone UTC+7 in call flow and show on script
Hi,
Just happened I implemented a call flow recently for UTC+8, share with you here my architect's call flow that verifies the date.

In the Update Data object, I have created 4 variables
- Task.ConvertedDate (Type: DateTime) - to convert the date into YYYYMMDD that I want because the caller input from another system which only has ddmmyy
- Task.UTC8 (Type: DateTime) - get UTC+8
- Task.UTC8_OnlyDate (Type: DateTime) - Convert UTC +8 to the format YYYYMMDD, without the time
- Task.duration (Type: Duration) - get the day difference in between the inputted date and UTC +8
Here are the expressions of ConvertedDate:
- MakeDateTime(2000 + ToInt(Right(Flow.newddmmyy,2)), ToInt(Substring(Flow.newddmmyy,2,2)), ToInt(Substring(Flow.newddmmyy,0,2)), 0, 0, 0)
Expressions of UTC8 :
- AddHours(GetCurrentDateTimeUtc(),8)
Expressions of UTC8_OnlyDate :
- MakeDateTime(Year(Task.UTC8), Month(Task.UTC8), Day(Task.UTC8), 0, 0, 0)
Expressions of duration :
- DateTimeDiff(Task.ConvertedDate,Task.UTC8_OnlyDate)
Hope this is helpful for you.
Regards
------------------------------
Johnson Lu
MFE International Pte Ltd.
Original Message:
Sent: 01-07-2024 10:28
From: Nuttapong Limadisai
Subject: Set timezone UTC+7 in call flow and show on script
How to set timezone UTC+7 in call flow and show on script
from format : MM/DD/YY HH:MM:SS to format : DD/MM/YY HH:MM:SS (UTC+7)


#ArchitectureandDesign
#Implementation
#Routing(ACD/IVR)
------------------------------
Nuttapong Limadisai
G-Able Public Company Limited
------------------------------