kcep Posted January 16, 2018 Share Posted January 16, 2018 Hi Everyone, How do I change this timestamp ... 2017-08-12 08:24:55 -0500 to this type of date format ... 08-12-2017 ? Thanks for your help. :-) Link to comment Share on other sites More sharing options...
Lee Smith Posted January 16, 2018 Share Posted January 16, 2018 See if this works. Let ( [ ts = yourTimeStamp_Field ; m = Middle ( ts ; 6 ; 2 ) ; d = Middle ( ts ; 9 ; 2 ) ; yr = left ( ts ; 4 ) ]; m & "-" & d & "-" &yr ) Link to comment Share on other sites More sharing options...
kcep Posted January 16, 2018 Author Share Posted January 16, 2018 Lee ... You're Great :-) No problem for a FileMaker master like you! Thanks. 1 Link to comment Share on other sites More sharing options...
Agnes Riley Posted January 16, 2018 Share Posted January 16, 2018 Lee's example is great for teaching you how to think and build a calculation. If you don't want to do it yourself, Brian Dunning's site has a large number of custom functions that might have what you're looking for. http://www.briandunning.com/filemaker-custom-functions/ So in a case like this I'd search for timestamp and go through and see if there was one that accomplish what I need, so I don't have to write one from scratch. I get it, some people like to write everything from scratch. I'm more a re-use type of person to save time. Link to comment Share on other sites More sharing options...
Lee Smith Posted January 16, 2018 Share Posted January 16, 2018 Hi Agnes, You make a good point. 1 hour ago, Agnes Riley said: I'm more a re-use type of person to save time. Me to. However, I did looked for this particular pattern and didn't spot one right away, so I just wrote it out. Link to comment Share on other sites More sharing options...
Agnes Riley Posted January 17, 2018 Share Posted January 17, 2018 Oh, I did not check whether this thing exists. I just wanted to ket them know about the resource. Link to comment Share on other sites More sharing options...
Lee Smith Posted January 17, 2018 Share Posted January 17, 2018 Hi Agnes, I do that too. Lee Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 2292 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