I am facing one issue while calling the Azure usage api. In the usage API, we need to provide the reported start date-time and reported end date-time. In these date-times if I provide the minutes part like:
2017-02-09T03%3a30%3a00Z
Then it fails with exception- bad request.
It works fine with date-time part till the hour part. The moment any minute part is given, it fails. I tried to make sure that:
• both start and end datetimes are past to the current date time
• both the datetimes are provided in the utc iso 8601 format
• end datetime is after i.e. future to the start datetime.
As a result of the above issue, the minimum time gap between the reported date-times that I could go is one hour. Please let me know that I could try or anything wrong that I might be doing.
Thanks in advance,
Rahul
:
instead of%3a
? – John Hascall