I am attempting to extract the two year (03 from 5/6/2003) from a date column and combine the results with another field and I dont know if it can be done. Anyone know how it is done?
Year() returns the Year number from a given date (as a number)
Format() returns a string in accordance with the supplied 'mask'
Right() extracts the rightmost 'n' characters from a string
You need to use your own column names of course
Does that help?
Regards
Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now -
I would have thought right(year([date])2) would have done the same. I know that using format is a safe bet, but since the default year format of the computer will pull either a 2 or 4 year date, using the above function should do the trick!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.