Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

date format - excluding year

 
   Windows Help (Home) -> Microsoft Access RSS
Next:  Creative Modem Blaster PCI Value DI5652-1  
Author Message
buggirl

External


Since: Jan 6, 2009
Posts: 2



(Msg. 1) Posted: Tue Jan 06, 2009 3:06 pm
Post subject: date format - excluding year
Archived from groups: microsoft>public>access (more info?)

Hello again -

I'm having trouble entering dates without the year. I want to keep the year
in a separate column (so I can sort or filter by year). I know I should be
able to format it using dd-mmm, but as soon as I export it to Excel, 2009 is
automatically tagged on the end and the format becomes "custom" (rather than
date format).

Any suggestions would be appreciated.

Thanks,

buggirl

 >> Stay informed about: date format - excluding year 
Back to top
Login to vote
Douglas J. Steele

External


Since: Nov 27, 2008
Posts: 61



(Msg. 2) Posted: Tue Jan 06, 2009 7:02 pm
Post subject: Re: date format - excluding year
Archived from groups: per prev. post (more info?)

If you're using the Date data type, you must store year: there's no way
around that. That's because under the covers, a date is an eight-byte
floating point number, where the integer portion represents the date as the
number of days relative to 30 Dec, 1899, and the decimal portion represents
the time as a fraction of a day.

That having been said, there's nothing stopping you from sorting or
filtering by year. Create a query, and add a calculated field that uses the
Year function to extract only the year from the date. Use that query
wherever you would otherwise have used the table.

 >> Stay informed about: date format - excluding year 
Back to top
Login to vote
buggirl

External


Since: Jan 6, 2009
Posts: 2



(Msg. 3) Posted: Wed Jan 07, 2009 12:24 pm
Post subject: Re: date format - excluding year
Archived from groups: per prev. post (more info?)

Thank you very much - you confirmed exactly what I thought. I'll try
creating a query instead.

cheers,

buggirl

"Douglas J. Steele" wrote:

> If you're using the Date data type, you must store year: there's no way
> around that. That's because under the covers, a date is an eight-byte
> floating point number, where the integer portion represents the date as the
> number of days relative to 30 Dec, 1899, and the decimal portion represents
> the time as a fraction of a day.
>
> That having been said, there's nothing stopping you from sorting or
> filtering by year. Create a query, and add a calculated field that uses the
> Year function to extract only the year from the date. Use that query
> wherever you would otherwise have used the table.
>
> --
> Doug Steele, Microsoft Access MVP
> [URL="http://I.Am/DougSteele"]http://I.Am/DougSteele[/URL]
> (no e-mails, please!)
>
>
>
> "buggirl" wrote in message
>
> > Hello again -
> >
> > I'm having trouble entering dates without the year. I want to keep the
> > year
> > in a separate column (so I can sort or filter by year). I know I should be
> > able to format it using dd-mmm, but as soon as I export it to Excel, 2009
> > is
> > automatically tagged on the end and the format becomes "custom" (rather
> > than
> > date format).
> >
> > Any suggestions would be appreciated.
> >
> > Thanks,
> >
> > buggirl
>
>
 >> Stay informed about: date format - excluding year 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
MM/DD date format no year - Hi, Is there a way to format the input for a date field using only the month and day. I have a program where I input data for a given year and don't want to enter the year with every date input. Thanks,

Finding a year in a date field - I need to pull all records for 2008 in a date field called completed. I know this shoudl be easy but I can never seem to find any help on date fields that seems to relate. I just want to create a simple query.

Format Date #/#/# - I am trying to use a function that I have used in the past but for some reason today when I type it in the query field and run my report Access is converting "####/##/##" to #\/#\/# and I receive an error message in that field for my query r...

Date Format - how can i set the date format from 8/30/2009 to August, 2009?? This date is on my subform. any idea?

Custom Date Format - How do I create a date format? I need the format to be: YYYYMMDD. Thanks
   Windows Help (Home) -> Microsoft Access All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]