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

Custom Date Format

 
   Windows Help (Home) -> Microsoft Access RSS
Next:  System Restore Takes Forever to Open  
Author Message
Brian T

External


Since: Sep 23, 2009
Posts: 2



(Msg. 1) Posted: Wed Sep 23, 2009 8:58 am
Post subject: Custom Date Format
Archived from groups: microsoft>public>access (more info?)

How do I create a date format? I need the format to be: YYYYMMDD.

Thanks

 >> Stay informed about: Custom Date Format 
Back to top
Login to vote
Kipp Woodard

External


Since: Sep 23, 2009
Posts: 1



(Msg. 2) Posted: Wed Sep 23, 2009 9:02 am
Post subject: RE: Custom Date Format
Archived from groups: per prev. post (more info?)

The format you want is simply "YYYYMMDD".

Where are you going to use it? If it is for a text control on a form, then
set the Format property of the control to yyymmdd, with no quotes.

If you want to format a column of query, then you would do it thus:

Select Format([MyDateColumn], "yyymmdd") From MyTable

In VBA it would be similar:

strFormattedDate = Format(dtMyDateVariable, "yyymmdd")


"Brian T" wrote:

> How do I create a date format? I need the format to be: YYYYMMDD.
>
> Thanks

 >> Stay informed about: Custom Date Format 
Back to top
Login to vote
Brian T

External


Since: Sep 23, 2009
Posts: 2



(Msg. 3) Posted: Thu Sep 24, 2009 4:20 am
Post subject: RE: Custom Date Format
Archived from groups: per prev. post (more info?)

thanks

"Kipp Woodard" wrote:

> The format you want is simply "YYYYMMDD".
>
> Where are you going to use it? If it is for a text control on a form, then
> set the Format property of the control to yyymmdd, with no quotes.
>
> If you want to format a column of query, then you would do it thus:
>
> Select Format([MyDateColumn], "yyymmdd") From MyTable
>
> In VBA it would be similar:
>
> strFormattedDate = Format(dtMyDateVariable, "yyymmdd")
>
>
> "Brian T" wrote:
>
> > How do I create a date format? I need the format to be: YYYYMMDD.
> >
> > Thanks
 >> Stay informed about: Custom Date Format 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
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?

date format - excluding year - 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 ..

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,

Automate Change of the format of a field to short date for.. - Hi, I have a table that I am creating through a make table query. Once created, I want to export the table to a text file and save to a location. I am attempting to create a macro that will do this. One of my fields is called CMMonth. The problem i...
   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 ]