only want year to show in date field

T

Tom van Stiphout

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.
 
D

Douglas J. Steele

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

Top