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
717
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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,214,551
Messages
6,120,161
Members
448,948
Latest member
spamiki

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