Date Formatting from a Formula
Hello,
I'm importing dates from an excel sheet that have a time stamp, and I have a formula that removes the time stamp in Smartsheet. This is fine except the date won't convert to 00/00/00 for that column. Does anyone know if there's a way to covert the format?
Thanks
Best Answer
-
@Marlei Try something like this:
=DATE(VALUE(MID(Timestamp@row, FIND(" ", Timestamp@row) - 4, 4)), VALUE(LEFT(Timestamp@row, FIND("/", Timestamp@row) - 1)), VALUE(MID(Timestamp@row, FIND("/", Timestamp@row) + 1, FIND("/", Timestamp@row, 4) - (FIND("/", Timestamp@row) + 1))))
Answers
-
How is the date displayed currently, and do you want it as mm/dd/yy or dd/mm/yy?
-
@Paul Newcome Hoping to get some help on something very similar.
I am using data shuttle to import data. The data in the excel .xlsx file contains a time stamp.
Example: 3/7/2022 1:00:00 PM PST
After using a complex formula, I was able to extract the date however it comes over as 3/7/2022 and I am not able to find a way to reformat it so that SmartSheet recognizes it as a date for sorting, etc.
I would prefer the format be mm/dd/yy so that it is recognized in a date type column. Any help would be greatly appreciated.
-
@Marlei Try something like this:
=DATE(VALUE(MID(Timestamp@row, FIND(" ", Timestamp@row) - 4, 4)), VALUE(LEFT(Timestamp@row, FIND("/", Timestamp@row) - 1)), VALUE(MID(Timestamp@row, FIND("/", Timestamp@row) + 1, FIND("/", Timestamp@row, 4) - (FIND("/", Timestamp@row) + 1))))
-
It worked! Thank you so much @Paul Newcome
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 61 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!