5.0 - Comparing dates in painless

@Jack_Conradson I'm now trying to work on a painless script (for daily index migration ) and I have a date stored as '2017-01-03T14:12:36.2770782-06:00' Is there a good way to get the utc time? I'm back to trying to parse this with out very much luck.. I've tried to convert the doc.date to a date and instant and get errors 5.0.0-rc Painless support for working with dates · Issue #21121 · elastic/elasticsearch · GitHub converting long to java long..