Newbies FMRusty Posted February 15, 2013 Newbies Posted February 15, 2013 Hi, I haven't use Filemaker since Version 7 so very, very rusty at present. I'd like help with a calculation please. I have a date field that comes out as 2/3/2013 or 16/3/2013. I would like a result that gives me 02032013 or 16032013 with the calculation result as text that I can concantenate with other field text to use as a primary key identifier. Thanks.
Raybaudi Posted February 15, 2013 Posted February 15, 2013 Right ( "00" & Day ( Date ) ; 2 ) & Right ( "00" & Month ( Date ) ; 2 ) & Year ( Date )
Newbies FMRusty Posted February 15, 2013 Author Newbies Posted February 15, 2013 Thank you, it worked perfectly. Now to get my head around the logic
LaRetta Posted February 15, 2013 Posted February 15, 2013 Hi FMRusty, I would suggest not using meaningful data as 'primary key identifier' because if a mistake is made and you change the date you will break your relationships. Primary keys should always be meaningless. :-) You also risk breaking your relationships if you change your date format at the OS level. Just something to seriously consider.
Aussie John Posted February 17, 2013 Posted February 17, 2013 Thank you, it worked perfectly. Now to get my head around the logic
Recommended Posts
This topic is 4354 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