# Importing dates with no delimiters

**URL:** <https://forums.toadworld.com/t/importing-dates-with-no-delimiters/40772>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [March 28, 2018, 1:02pm UTC](https://forums.toadworld.com/t/importing-dates-with-no-delimiters/40772 "2018-03-28T13:02:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caitlin\_Shaw](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Caitlin\_Shaw](https://forums.toadworld.com/u/Caitlin_Shaw)\
**Post date:** [March 28, 2018, 1:02pm UTC](https://forums.toadworld.com/t/importing-dates-with-no-delimiters/40772/1 "2018-03-28T13:02:02Z")

</div>

I am trying to import from an Excel spreadsheet with dates in numeric format (eg 20180328 for March 28, 2018). I can’t figure out how to get the Import Table Data wizard to convert these to dates so that they can be imported into a date column.

Things I have tried: selecting “YMD” as the date order (this gives conversion errors in the preview); selecting “YMD” as the date order and nothing as the date delimiter (this gives the immediate error “date and time delimiters must be specified”); and selecting custom plus “yyyymmdd” as the date order (this gives nulls in the date columns).

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [March 28, 2018, 1:14pm UTC](https://forums.toadworld.com/t/importing-dates-with-no-delimiters/40772/2 "2018-03-28T13:14:58Z")

</div>

I was able to make it work in the current beta with the Custom date order and YYYYMMDD.

If you have blanks in the date/time delim fields, put something in there to avoid the error about them having to be specified.

Another option is to use the expression builder. I used an expression like this and it worked for me. [DATETIMEFROMSTRING([FIELD1], YYYYMMDD, ‘’, ‘’) ]

if you are still having trouble, post your table ddl along with your spreadsheet (use fake date if the real data is sensitive).

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [March 28, 2018, 1:37pm UTC](https://forums.toadworld.com/t/importing-dates-with-no-delimiters/40772/3 "2018-03-28T13:37:30Z")

</div>

My first try was with a text file. I tried it again with XLSX. Saw the nulls as you mentioned with in the preview pane (using custom and yyyymmdd), but I continued anyway and ran it. It created the correct date values in my table when it ran.

---

<div class="post-metadata">

**Author:** ![Caitlin\_Shaw](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Caitlin\_Shaw](https://forums.toadworld.com/u/Caitlin_Shaw)\
**Post date:** [March 28, 2018, 1:54pm UTC](https://forums.toadworld.com/t/importing-dates-with-no-delimiters/40772/4 "2018-03-28T13:54:48Z")

</div>

Ah-hah, it did import them! Slooooowly, though (30 rows/second).

Thank you!

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [March 28, 2018, 1:57pm UTC](https://forums.toadworld.com/t/importing-dates-with-no-delimiters/40772/5 "2018-03-28T13:57:33Z")

</div>

Next time you do an import, check the “Array DML” box on the last page and it will go much faster.

I’ve fixed the blank preview problem for the next version.
