¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: TWS Build 10.20.1f dateformat problem


 

Hi

My stupid suggestion is to check if the dash is transmitted correctly. Maybe you need double quote like ""/

But i guess you've already checked that?

On Sun, 18 Dec 2022 at 14:03 Zsolt Soczo <zsolt.soczo@...> wrote:
Hello,
? I tested TWS Build 10.20.1f, and it does not accept the given date
for Order Tif:
"20221218 05:50:15 US/Central"

ErrorMessage: End Time: The date, time, or time-zone entered is
invalid. The correct format is yyyymmdd hh:mm:ss xx/xxxx where
yyyymmdd and xx/xxxx are optional. E.g.: 20031126 15:59:00 US/Eastern
Note that there is a space between the date and time, and between the
time and time-zone.? If no date is specified, current date is assumed.
If no time-zone is specified, local time-zone is assumed(deprecated).
You can also provide yyyymmddd-hh:mm:ss time is in UTC. Note that
there is a dash between the date and time in UTC notation.

I don't see why my date format is bad.

Embarrassingly, the API documentation says I have to use dash between
date components:

20220930-15:00:00 US/Eastern

Besides, the Account/Diagnostics menu is missing, so I cannot see the API log.

--
Thanks,
Zsolt





--
Ed Gonen

Join [email protected] to automatically receive all group messages.