Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 2514 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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. :-) 

 

Posted

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 
)

 

Posted

Lee ... You're Great :-) No problem for a FileMaker master like you! Thanks.

  • Like 1
Posted

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.

Posted

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.

This topic is 2514 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.