snatkins Posted March 23, 2005 Posted March 23, 2005 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
comment Posted March 23, 2005 Posted March 23, 2005 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
snatkins Posted March 23, 2005 Author Posted March 23, 2005 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?
comment Posted March 23, 2005 Posted March 23, 2005 Returns the specified number of characters in the supplied text, counting from the right. I strongly recommend reading (at least) the help.
Recommended Posts
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