Jump to content
Sign in to follow this  
SM76

Extracting info from date fields

Recommended Posts

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

Share this post


Link to post
Share on other sites

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 )

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    Matt Cudmore 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.