The format I have been given yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
. However, this isn't working with my code which is
datetime.utcnow().strftime("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
The output is simply:
yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
Why does this not work? What is the fix ?