SM76 Posted April 27, 2007 Share Posted April 27, 2007 Mornin .. I was wondering if anybody knows a way to extract the four digit year from a date-field. Reason I'm doing this is because I have a calculation that creates file references to images that have a file-name that includes that year ... Appreciate the help .. SM Link to comment Share on other sites More sharing options...
comment Posted April 27, 2007 Share Posted April 27, 2007 Year ( Datefield ) will extract the year. If you have records going back to before year 1000, and you want to pad the result with zeros, use: Right ( "0000" & Year ( Datefield ) ; 4 ) Link to comment Share on other sites More sharing options...
Stuart Taylor Posted April 27, 2007 Share Posted April 27, 2007 Calculation result as number Year ( date ) Link to comment Share on other sites More sharing options...
SM76 Posted April 27, 2007 Author Share Posted April 27, 2007 that was easy .. thanks Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6202 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