Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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?

Johanes

asked 19 Aug '21, 02:34

johanes%20siahaan's gravatar image

johanes siahaan
11112
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 '21, 07:19

John%20Smirnios's gravatar image

John Smirnios
12.0k396166
accept rate: 37%

edited 19 Aug '21, 08:47

April instead of March, I assume.

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

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

(19 Aug '21, 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 '21, 08:41

Volker%20Barth's gravatar image

Volker Barth
40.2k361550822
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

By RSS:

Answers

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:

×22
×7
×4

question asked: 19 Aug '21, 02:34

question was seen: 915 times

last updated: 19 Aug '21, 08:47