Text to Date Field
I have a file that will be automatically uploaded from another source, but the vendor has the date input as text in the following format: 20200113. Is there anyway that I can easily get this information into an actual Date column so that I can report off of it? Any suggestions would be greatly appreciated!
Best Answer
-
If you import that "20200113" into a Text/Number column, you can then create an adjacent Date-formatted column and use this formula (wherein [Imported Date] is the name of the column where the raw "20200113" gets put):
=DATE(VALUE(LEFT([Imported Date]@row, 4)), VALUE(MID([Imported Date]@row, 5, 2)), VALUE(RIGHT([Imported Date]@row, 2)))
-MS
Answers
-
If you import that "20200113" into a Text/Number column, you can then create an adjacent Date-formatted column and use this formula (wherein [Imported Date] is the name of the column where the raw "20200113" gets put):
=DATE(VALUE(LEFT([Imported Date]@row, 4)), VALUE(MID([Imported Date]@row, 5, 2)), VALUE(RIGHT([Imported Date]@row, 2)))
-MS
-
Thank you so much! That worked perfectly!
-
Hi
On a related problem i have dates in a primary column with the following syntax 16/12/2020 that i need to convert into a date column.
Can someone please assist.
Thanks
-
I found a formula that @Mark Cronk created on this post, here: Converting a drop down single select list of dates into a date I can use with Calendar App
=DATE(VALUE(RIGHT([date text]@row, 4)), VALUE(LEFT([date text]@row, 2)), VALUE(MID([date text]@row, 4, 2)))
You'll nee to update the column name in [these] with your primary column name. Let us know if this works for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!