chapeau_melon Posted March 13, 2007 Posted March 13, 2007 Can you help me in defining a calculation that transforms a date from YYYY/MM/DD to DD/MM/YYYY. Kind Regards
Lee Smith Posted March 13, 2007 Posted March 13, 2007 Hi chapeau_melon, I think this calculation will do what you want. Let([ Parts=Substitute( YourDateField; ["/";" "]; ["-" ; " "]); Month=RightWords(Parts;1); Day=MiddleWords(Parts;2;1); Year=LeftWords(Parts;1)]; Day &"/"& Month &"/"& Year) HTH Lee
Raybaudi Posted March 13, 2007 Posted March 13, 2007 or: Right ( yourField ; 2 ) &"/"& Middle ( yourField ; 6 ; 2 ) &"/"& Left ( yourField ; 4 ) The Lee's calc contains a little "bug"; the right calc is: Let([ Parts = Substitute( YourDateField; ["/";" "]; ["-" ; " "]); [color:red]Day = RightWords( Parts ; 1 ) ; [color:red]Month = MiddleWords( Parts ; 2 ; 1 ); Year = LeftWords( Parts ; 1 )]; Day &"/"& Month &"/"& Year)
chapeau_melon Posted March 13, 2007 Author Posted March 13, 2007 (edited) Thx a lot, Lee calcs works very nice except I had to switch Day and Month. The second solution works also like a charm ! Edited March 13, 2007 by Guest
Recommended Posts
This topic is 6526 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