We are in Alberta, Canada. We did had a non binding plebiscite that was included in the election few years back to remove DST and "Keep DTS" won be a very narrow margin, like it was a little over 1% that wanted to keep DTS. For now we will have to take into account DTS on the design.
Yes, planning to do a DB table lookup for the start and end date\time of the maintenance window so we do not have to stay late and up early.
Original Message:
Sent: 06-12-2023 00:13
From: Robert Wakefield-Carl
Subject: Compare 2 dates in Architect
Where are you that you still require DST? As for calculating, can't you look at a table that has an open and close time in there and compare that with NOW? I know you can do the If, then, else calculation, but easier to have a variable for the number of hours on the offset instead of trying to get the different variables all in order and bracketed correctly. LMK either way and I can get you something that works.
------------------------------
Robert Wakefield-Carl
ttec Digital
Sr. Director - Innovation Architects
Robert.WC@ttecdigital.com
https://www.ttecDigital.com
https://RobertWC.Blogspot.com
Original Message:
Sent: 06-11-2023 02:02
From: Vincent Sabolboro
Subject: Compare 2 dates in Architect
@Robert Wakefield-Carl
We have been doing maintenance over few weekends and currently we have to enable maintenance announcement at start of change then remove it at the end of change which is not getting fun. While my date evaluation below work?
check DST condition flag
true (
Flow.CloseTimeDTSCond = Flow.CloseTime + 6
Flow.OpenTimeDTSCond= Flow.OpenTimeDTS + 6
false
Flow.CloseTimeDTSCond = Flow.CloseTime + 7
Flow.OpenTimeDTSCond= Flow.OpenTimeDTS + 7
GetCurrentDateTimeUtc() < ToDateTime(Flow.CloseTimeDTSCond) or GetCurrentDateTimeUtc() > ToDateTime(Flow.OpenTimeDTSCond)
do condition 1
Do not play announcement
else condition 2
Play announcement
------------------------------
Vincent Sabolboro
ATB Financial
Original Message:
Sent: 05-26-2020 13:58
From: Robert Wakefield-Carl
Subject: Compare 2 dates in Architect
If looking at current time, this would work: AddDays(GetCurrentDateTimeUtc(), 3) > MakeDateTime(2020, 05, 28) where you could replace 2020, 05, 28 with your own variables.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
robertwc@avtex.com
https://www.Avtex.com
https://RobertWC.Blogspot.com
Original Message:
Sent: 05-26-2020 10:00
From: Melissa Bailey
Subject: Compare 2 dates in Architect
The ToDateString function supports that format. If you want to see if a particular date is more than 3 days old
ToDateTime("2020-05-26T07:41:12.492Z") < AddDays(Flow.StartDateTimeUtc, -3)
------------------------------
Melissa Bailey
Genesys - Employees
Original Message:
Sent: 05-26-2020 04:57
From: Jeremy Monzo
Subject: Compare 2 dates in Architect
Hello,
I would like to know what is the best way for compare 2 dates in Architect with the format YYYY-MM-DDTHH:MM:SS (2020-05-26T07:41:12.492Z)
My goal is to to find out if the response to the email interaction is => 3 days for apply a different behavior in Architect.
thanks
Jeremy
#ArchitectureandDesign
#Implementation
#Routing(ACD/IVR)
#Telephony
------------------------------
Jeremy
------------------------------