You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure DevOps Test Runs API GET请求日期格式错误问题咨询

Fixing Invalid Dates Error for Azure DevOps Test Runs API

Let's break down the issues causing your error and fix them step by step:

  • Fix the date range order first
    Your current request has minLastUpdatedDate set to 2019-05-17T14:00:00.910Z and maxLastUpdatedDate set to 2019-05-15T14:00:00.910Z—this is backwards! The minimum date can't be later than the maximum date, and this logical mismatch is definitely triggering part of the "Invalid dates specified" error. Swap them so minLastUpdatedDate is the earlier date.

  • Use the correct ISO 8601 date format
    While the docs don't spell it out explicitly, Azure DevOps APIs rely on standard ISO 8601 UTC timestamps. Valid formats include:

    • yyyy-MM-ddTHH:mm:ssZ (e.g., 2019-05-15T14:00:00Z)
    • yyyy-MM-ddTHH:mm:ss.fffZ (with three-digit milliseconds, like your original but in the right order)
      The key is ending with Z to denote UTC, or including a timezone offset like +00:00.
  • Corrected API request example
    Here's your fixed request with the date order swapped and valid formatting:

    https://dev.azure.com/organisation/project/_apis/test/runs?api-version=5.0&releaseEnvIds=12345&minLastUpdatedDate=2019-05-15T14:00:00.910Z&maxLastUpdatedDate=2019-05-17T14:00:00.910Z
    

Also, just a reminder: you're right about the 7-day limit for the date range—your adjusted range (2 days) falls well within that requirement, so that won't be an issue here.

内容的提问来源于stack exchange,提问作者Callum Wilson

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.13 07:41:16