Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
h11
Helper III
Helper III

Not able to change Text type column to Date type column in sharepoint list

Hi,

 

I'm not able to change the text type column into date type column in a sharepoint list though I'm the owner of the list and have full access to the list. 

 

Please find the screenshot below:

 

h11_0-1723579910515.png

I added a calculated column to test its functionality. I removed my owner's access and then reinstated it. I have attempted every solution I found on Google, but none have succeeded. Please help

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

This requires a two step process.  Change the column type to a number first. Then change to a date.

View solution in original post

4 REPLIES 4
v-xianjtan-msft
Community Support
Community Support

Hi @h11 

 

May I ask if your problem has been resolved? If it has been resolved, please accept lbendlin's reply as a solution. If you still have questions, please allow me to add some details.


The text data in your screenshot looks like a date expressed as a serial number in Excel, with serial number 1 indicating 1900/1/1, which can be converted to date format in Power Query Editor.
Please refer to the following for detailed steps:
1. Select “Transform data” into Power Query Editor, converting your column’s text types to whole number types

1.png2.png

2. Insert new step, then enter the following formula in the formula box.

 

= Table.AddColumn(#"Changed Type1", "NewDate", each Date.AddDays(#date(1899, 12, 30), [Date]))

 

3.png4.png

3. Converting the new column’s text types to date types

5.png

 

Best Regards,

Jarvis Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

This requires a two step process.  Change the column type to a number first. Then change to a date.

Hi,

 

I don't have an option to edit it to any other type for this column in my sharepoint list.

 

h11_0-1723605873469.png

For all the other 20 columns of the list, I'm able to see edit option in column settings and I'm able to change the column type as well. Thank you!

 

@lbendlin 

Do the type changes in Power Query.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.