Query Editor - Issue with coverting date format when year changes when date format is Day DD MMM e.g Sat 28 Dec

Kerryx

Well-known Member
Joined
May 6, 2016
Messages
741
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
[URL]https://imgur.com/a/2bFUSl2
[/URL]
At the switch over to 2020 it just shows as an error using the following

#"Changed Type" =Table.TransformColumnTypes(Data0,{{"Column1", type date},

Is there an way to handle this?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
DataFormat.Error:We couldn't parse the input provided as Date value
Details:
Sat 11 Jan
 
Last edited:
Upvote 0
I think your source table contain dates stored as text not as date

select in source Sat 11 Jan and look at formula bar, if you see the same that means this is a text not a date
 
Last edited:
Upvote 0
Probably is as it is in format at
Sat 28 Dec
Wed 22 Jan
Sat 1 Feb

everything prior to Wed 1 Jan converts to date ok as I assume it looks and takes current system year for date but runs into trouble when it hits Jan 1 as It cannot determine next year is 2020
 
Upvote 0
I suggest use normal format date: dd/mm/yyyy or in US style: mm/dd/yyyy without custom formatting like: Sat 1 Feb
 
Upvote 0
Wish I could but data being pulled from a website so gotta work with what I got
 
Upvote 0
data being pulled from a website

you need to convert data to be a proper data (date)
if on website dates are as dates it's ok, but if as text you should convert it manually

btw. Sat 11 Jan is not a date, simply this is a text that pretends to be a date
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,117
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top