Need to change date format in deluge to interact with an API

Need to change date format in deluge to interact with an API

Hello,

I am working with an API for an external service that I'm integrating into my app but there are a couple of date parameters that need to be sent in a specific format. One is a timestamp like this 2018-06-13T15:00:56.782Z and another is similar but just the date like this 2018-06-13.

When I use the built in function 'today' I get " Jun 15,2018" and when I use 'now' I get "Jun 15,2018 09:13:16". I can't find any functions to change the format, how can I do this to match the  ISO8601 format required?