Hi! I'm trying to understand how to generate dates using Arcade but it's quite confusing.
1. Why does this code
return Date(2020,11,02);
return a result : 01.12.2020 22:00:00 ????
I get very weird results when trying to use this function 😞
2. Then again, when trying to convert from string I get better results:
var year = Year(`20201102`); //02.11.2020 -> November 2, 2020
var month = Month(`20201102`);
var day = Day(`20201102`);
return Date(year, month, day, 0, 0, 0, 0);
returns 01.11.2020 22:00:00 which is almost correct, but still 1 day less than correct
3. How to get rid from minutes - hours- second ?
very confused
thanks