but using that formula i get the timestamp for example: 2019-09-30T00:00:00Z
And the time is bothering me. Because 00,00,00 means the Start of the day, first second first minute of september 30th.
If i would want all events from the last day of the month i would need to have the timestamp less than : 2019-09-30T23:59:59Z
Goal is to get all events from the first second on the first day of the month to the last second of that month.
GREATER THAN: 2019-09-01T00:00:00Z
startOfMonth(getPastTime(1,'MONTH'),'yyyy-MM-dd')
this works great, i get the first day on the past month and timestamp is the first second of that day so i get everything from the first day and onwards.
LESS THAN: 2019-09-30T23:59:59Z
addDays(startOfMonth(utcNow()),-1,'yyyy-MM-dd')
above formula would however not produce the time 23.59.59.
above formula would produce 00.00.00 and that means records from that day would not be part of my selection.
then maybe removing the -1 and get the timestamp: 2019-10-01T00.00.00Z is better
since it would mean i get items before the start of october 1.