JTSmith Posted October 31, 2017 Posted October 31, 2017 I'm hoping someone can help me... I'm trying to convert the following Timestamp to Date. The timestamp format is: 2017-10-30T14:47:12-06:00 . I've tried to simply use the Left function to make it 2017-10-30, but I still can't convert that to a regular date. Any advice? Thank you!
Lee Smith Posted October 31, 2017 Posted October 31, 2017 Hi JT, Have you checked out the Custom Functions at http://www.briandunning.com/filemaker-custom-functions/recentlist.php I remember that there are several there that deal with TimeStamps. Lee
JTSmith Posted October 31, 2017 Author Posted October 31, 2017 Yes, couldn't find one that works with my format
Lee Smith Posted October 31, 2017 Posted October 31, 2017 (edited) Hi JT You could also use the Let Function, I like it because it is easier to read. Let ( [ ~ts = yourTimeStampField ]; Date ( Middle ( ~ts ; 6 ; 2 ) ; Middle ( ~ts ; 9 ; 2 ) ; Left ( ~ts ; 4 ) )) You can also just use the Date Function Date ( Middle ( yourTSfield ; 6 ; 2 ) ; Middle ( yourTSfield ; 9 ; 2 ) ; Left ( yourTSfield ; 4 ) ) Be sure your Calculation result is a DATE. BYW, this is the CF I was thinking of. http://www.briandunning.com/cf/1526 Edited November 1, 2017 by Lee Smith added the CF link and Date Function
Recommended Posts
This topic is 2590 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now