How can we set a date to be in UTC?
Text(Date(2017,1,1), UTC) gives on my system "2016-12-31T23:00:00.000Z"
This is why writing a date to a database often goes wrong by a day.
How can I obtain the value "2017-01-01T00:00:00.000Z" to be able to write to a database?
Obviously you can do it with text, but any other better way?
PS Here is how to do it with text:
DateTimeValue(Text(MyDateVariable, "yyyy-mm-dd")&"T00:00:00.000Z"))
For example this works:
Text(DateTimeValue(Text(Date(2017,1,1), "yyyy-mm-dd")&"T00:00:00.000Z"),UTC)