Change the / in aqDateTime.Today to -
Hello, For my test I need to fill in the current date. But, our system doesn't allow the current date to be with / and it needs to be - instead. Does anyone know if it is possible to change this, and if it is, how can I change it? I added screenshots for clearance. Thanks in advance!Solved2.4KViews0likes10CommentsMock API Generation does not use data/date-time spec examples
I have an open API 3.0 spec which uses date and date time fields. I've found the API mocking integration does not use the example values in my specification. For dates, the value is always 2015-07-20 For date time it is always 2015-07-20T15:49:04-07:00 I've created a sample API which demonstrates the issue. Below is the mocking endpoint https://virtserver.swaggerhub.com/swilko/TestPetStoreAPI/1.0.0/store/order/1 Below is the spec examples which are specified in the spec for the Order schema, which are not returned by the mock. shipDate: type: string format: date-time example: "2017-07-21T17:32:28Z" otherDate: type: string format: date example: "2017-07-21"1.4KViews0likes2CommentsJavascript for loop using date as counter
Hi. I'm trying to create a for loop using a date starting with 1/1/2021 and going to today's date as below: for(var d = aqDateTime.SetDateElements(2021, 01, 01); d <= aqDateTime.Now(); aqDateTime.AddDays(d, 1)) { ... } The var d is not incrementing by 1 day each time. It's staying constant at 01/01/2021. Can someone point me in the right direction? I had it working when I was using a javascript date object, but that creating other hurdles inside the for loop. I really want to use a DateTime (or Date) in TestComplete's native date format. Thanks!Solved1.2KViews0likes3Comments