only want year to show in date field

  • Thread starter Thread starter Mrunkowski
  • Start date Start date
On Mon, 28 Apr 2008 06:21:01 -0700, Mrunkowski <[email protected]>
wrote:

Use the Year function:
select Year(ReleaseDate) as YearOfReleaseDate
from SomeTable

-Tom.
 
What do you want to actually store: just the year, or the actual date of
release?

If you want to only store the year, use an Integer field as opposed to a
Date field.

If you want to store the actual date of release, but only display the year,
use a Date field, and set its Format to yyyy. (Note that if you do use a
Date, you must store a complete date in it.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top