Also read this one (especially bold one) in case you have just YY instead of YYYY.
https://groups.yahoo.com/neo/groups/amibroker/conversations/messages/192013
Hello,
Thank you very much for your e-mail.
You are using dd/mm/yy date format which is unreliable because in creates ambiguity in cases like 01/02/03. Windows does not now if you mean January 2nd, 2003 or maybe February 1st, 2003 or maybe 2001, February 3rd or other...
StrToDateTime uses Windows conversion functions and they generally depend on regional settings that your OS currently has. But it also always understands ISO format, i.e. YYYY-MM-DD. So it is preferable to use YYYY-MM-DD so no ambiguity exists.
So I would use:
dt_uk = "20"+yy + "-" + mm + "-" + dd;
instead
Best regards,
Tomasz Janeczko
amibroker.com
Thank you very much for your e-mail.
You are using dd/mm/yy date format which is unreliable because in creates ambiguity in cases like 01/02/03. Windows does not now if you mean January 2nd, 2003 or maybe February 1st, 2003 or maybe 2001, February 3rd or other...
StrToDateTime uses Windows conversion functions and they generally depend on regional settings that your OS currently has. But it also always understands ISO format, i.e. YYYY-MM-DD. So it is preferable to use YYYY-MM-DD so no ambiguity exists.
So I would use:
dt_uk = "20"+yy + "-" + mm + "-" + dd;
instead
Best regards,
Tomasz Janeczko
amibroker.com