when I import the csv file to a sql anywhere database, a field of type datetime has a problem. example : the date of the imported csv file 17-04-21 (dd-mm-yy) in the sql anywhere database becomes the date 1917-04-21. There is an addition of 19 to 17. Does anyone know why?


asked 19 Aug, 02:34

johanes%20siahaan's gravatar image

johanes siahaan
accept rate: 0%

See http://dcx.sybase.com/index.html#sqla170/en/html/813a963e6ce210149d1ebbd44cf13f64.html*loio813a963e6ce210149d1ebbd44cf13f64

When dates are ambiguous, the "DATE_ORDER" option controls how they are interpreted. "17-04-21" might be "April 21, 2017" or "April 17, 2021"

permanent link

answered 19 Aug, 07:19

John%20Smirnios's gravatar image

John Smirnios
accept rate: 37%

edited 19 Aug, 08:47

April instead of March, I assume.

(19 Aug, 08:30) Volker Barth
Replies hidden

Thank you, yes. It was early. I have edited my post.

(19 Aug, 08:47) John Smirnios

As to the century, please also check the nearest century option. It decides how 'yy' is mapped to 'yyyy', so to speak.

permanent link

answered 19 Aug, 08:41

Volker%20Barth's gravatar image

Volker Barth
accept rate: 34%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 19 Aug, 02:34

question was seen: 192 times

last updated: 19 Aug, 08:47