Hi,
I'm trying to build an interval of dates in a script to uses into data action.
If i uses english as language of genesys cloud, this works ok but if i switchs to another language the process brokes because the format of the date.
I have the following logic
FechaFin = formatDate(dateToMilliseconds({{Scripter.Hora de inicio de llamada del cliente}}), "yyyy-MM-dd")
FechaInicio = formatDate({{startDateMilliseconds}}, "yyyy-MM-dd")
startDateMilliseconds = {{endDateMilliseconds}} - {{thirtyDaysInMilliseconds}}
endDateMilliseconds = dateToMilliseconds({{Scripter.Hora de inicio de llamada del cliente}})
thirtyDaysInMilliseconds = 30 * 24 * 60 * 60 * 1000
I know the main issue is the format of {{Scripter.Hora de inicio de llamada del cliente}} when the language change this changes the format of this built in Variable .
Anybody can help me¿
How can i adapt the logic?
My data action is configured like this way : "interval": "${input.startDate}T00:00:00.000Z/${input.endDate}T23:59:59.000Z",
BR