postman中json传date时间类型参数

postman中json传date时间类型参数_第1张图片

postman中json传date时间类型参数_第2张图片 

{
    "startTime": {{startTime}},
    "endTime": {{endTime}},
    "createStartTime": {{createStartTime}},
    "createEndTime": {{createEndTime}}

postman.setGlobalVariable("startTime",Date.parse(new Date("2021/06/01 00:00:10")));
postman.setGlobalVariable("endTime",Date.parse(new Date("2024/06/13 23:59:10")));
postman.setGlobalVariable("createStartTime",Date.parse(new Date("2021/06/01 00:00:10")));
postman.setGlobalVariable("createEndTime",Date.parse(new Date("2023-07-25 17:36:16")));
 

你可能感兴趣的:(postman,json,测试工具)