Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have a feeling that this may be easy, but it's friday and my luck is running low today...
How can I trim a string of test with a numberical date at the end to get the date back?
My field is like:
text40664
texttext40634
etc
So the sting is of varying length, but the date should always be the last 5 digits.
Thanks,
Isabel
I don't understand the question. Do you want the string in front of the number characters?
left(MyField, len(MyField)-5)
date(num#(right(MyField,5)),'YYYY-MM-DD') as MyDate. Change the formatting as you like.
Thank you. May you please advise me on how to group all the text ie, the string minus 5 digits that related to a date?
Thanks,
Isabel
I don't understand the question. Do you want the string in front of the number characters?
left(MyField, len(MyField)-5)
Yes, that's what I meant. Thanks for the translation!