Jump to content

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

Recommended Posts

Posted

In response to my query about creating a calculation to put together a date and code answer, where the calculation is 032305HAG - the following response was posted:

Filter ( GetAsText ( Date Modified ) ; "0123456789" )&ED Contacts::IN Code

However, I don't have the "Filter" function - I tried just typing it in but it told me there was a problem - the only way I could get it to work was by taking out the "Filter." but is it possible, it actually needs to be a listed operator? (I am using FMP 6)

My result is now: 03/23/05HAG - how do I get the "/" out?

Thanks!

Sarah

Posted

Yes, that's version 7 syntax you have there. You can try:

TextToNum( DateToText( Date Modified ) ) & ED Contacts::IN Code

Mind you, the leading zeros depend on your system format. If you want to play it safe, use:

Right ("0" & Month ( Date Modified ) , 2 ) &

Right ("0" & Day ( Date Modified ) , 2 ) &

Right (Year ( Date Modified ) , 2 ) &

ED Contacts::IN Code

Posted

Thanks so much - it worked! Version 7 should be in my mailbox by Friday, but happy to know how.

Just out of curiousity - what does "Right" do?

This topic is 7278 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.