A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Question



 
 
Thread Tools Display Modes
  #1  
Old September 10th, 2009, 12:24 AM posted to microsoft.public.access.tablesdbdesign
paduanow
external usenet poster
 
Posts: 20
Default Date Question

I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time field
or a text field with a string conversion routine that puts it on the required
format?

I will never display this date in a form or report.


--
pad
  #2  
Old September 10th, 2009, 12:59 AM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Date Question

Please be aware that Access stores dates (date/time) the way Access wants
to.

I believe you could simply FORMAT a date that Access stored in the manner
you are describing.

Take a look at Access HELP the Format() function.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"paduanow" wrote in message
...
I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time field
or a text field with a string conversion routine that puts it on the
required
format?

I will never display this date in a form or report.


--
pad



  #3  
Old September 10th, 2009, 12:59 AM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Date Question

Please be aware that Access stores dates (date/time) the way Access wants
to.

I believe you could simply FORMAT a date that Access stored in the manner
you are describing.

Take a look at Access HELP the Format() function.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"paduanow" wrote in message
...
I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time field
or a text field with a string conversion routine that puts it on the
required
format?

I will never display this date in a form or report.


--
pad



  #4  
Old September 10th, 2009, 01:01 AM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Date Question

.... and to follow on ...

if the date will never be displayed, what value is there in storing it?

To gain you the set of date/time related functions in Access, I'd recommend
that you use the Date/Time data type to store it.

But perhaps the use to which you plan to put this needs to be described so
we can better help...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"paduanow" wrote in message
...
I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time field
or a text field with a string conversion routine that puts it on the
required
format?

I will never display this date in a form or report.


--
pad



  #5  
Old September 10th, 2009, 01:01 AM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Date Question

.... and to follow on ...

if the date will never be displayed, what value is there in storing it?

To gain you the set of date/time related functions in Access, I'd recommend
that you use the Date/Time data type to store it.

But perhaps the use to which you plan to put this needs to be described so
we can better help...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"paduanow" wrote in message
...
I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time field
or a text field with a string conversion routine that puts it on the
required
format?

I will never display this date in a form or report.


--
pad



  #6  
Old September 10th, 2009, 01:16 AM posted to microsoft.public.access.tablesdbdesign
paduanow
external usenet poster
 
Posts: 20
Default Date Question

Hi Jeff,

In this application, the date will be used to mark when data was transferred
to another database. It will be used as a Date Stamp if you will. The
format of yyyy,mm,dd is a requirment for a State Application. My be sent in
this order. I also need lead "0" Example 02 or 2 digits stored.

Is access capable of this task?

pad


"Jeff Boyce" wrote:

.... and to follow on ...

if the date will never be displayed, what value is there in storing it?

To gain you the set of date/time related functions in Access, I'd recommend
that you use the Date/Time data type to store it.

But perhaps the use to which you plan to put this needs to be described so
we can better help...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"paduanow" wrote in message
...
I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time field
or a text field with a string conversion routine that puts it on the
required
format?

I will never display this date in a form or report.


--
pad




  #7  
Old September 10th, 2009, 01:16 AM posted to microsoft.public.access.tablesdbdesign
paduanow
external usenet poster
 
Posts: 20
Default Date Question

Hi Jeff,

In this application, the date will be used to mark when data was transferred
to another database. It will be used as a Date Stamp if you will. The
format of yyyy,mm,dd is a requirment for a State Application. My be sent in
this order. I also need lead "0" Example 02 or 2 digits stored.

Is access capable of this task?

pad


"Jeff Boyce" wrote:

.... and to follow on ...

if the date will never be displayed, what value is there in storing it?

To gain you the set of date/time related functions in Access, I'd recommend
that you use the Date/Time data type to store it.

But perhaps the use to which you plan to put this needs to be described so
we can better help...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"paduanow" wrote in message
...
I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time field
or a text field with a string conversion routine that puts it on the
required
format?

I will never display this date in a form or report.


--
pad




  #8  
Old September 10th, 2009, 03:49 AM posted to microsoft.public.access.tablesdbdesign
Graham Mandeno
external usenet poster
 
Posts: 593
Default Date Question

Hi Pad

If you have a date value, then you can use the Format function to show it in
pretty much any form you like.

Say you have a date/time field called TransferDate with the value
4-Sep-2009.

Then,
Format([TransferDate], "yyyymmdd")
will give:
20090904

--
Good Luck :-)

Graham Mandeno [Access MVP]
Auckland, New Zealand


"paduanow" wrote in message
...
Hi Jeff,

In this application, the date will be used to mark when data was
transferred
to another database. It will be used as a Date Stamp if you will. The
format of yyyy,mm,dd is a requirment for a State Application. My be sent
in
this order. I also need lead "0" Example 02 or 2 digits stored.

Is access capable of this task?

pad


"Jeff Boyce" wrote:

.... and to follow on ...

if the date will never be displayed, what value is there in storing it?

To gain you the set of date/time related functions in Access, I'd
recommend
that you use the Date/Time data type to store it.

But perhaps the use to which you plan to put this needs to be described
so
we can better help...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"paduanow" wrote in message
...
I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time
field
or a text field with a string conversion routine that puts it on the
required
format?

I will never display this date in a form or report.


--
pad






  #9  
Old September 10th, 2009, 03:49 AM posted to microsoft.public.access.tablesdbdesign
Graham Mandeno
external usenet poster
 
Posts: 593
Default Date Question

Hi Pad

If you have a date value, then you can use the Format function to show it in
pretty much any form you like.

Say you have a date/time field called TransferDate with the value
4-Sep-2009.

Then,
Format([TransferDate], "yyyymmdd")
will give:
20090904

--
Good Luck :-)

Graham Mandeno [Access MVP]
Auckland, New Zealand


"paduanow" wrote in message
...
Hi Jeff,

In this application, the date will be used to mark when data was
transferred
to another database. It will be used as a Date Stamp if you will. The
format of yyyy,mm,dd is a requirment for a State Application. My be sent
in
this order. I also need lead "0" Example 02 or 2 digits stored.

Is access capable of this task?

pad


"Jeff Boyce" wrote:

.... and to follow on ...

if the date will never be displayed, what value is there in storing it?

To gain you the set of date/time related functions in Access, I'd
recommend
that you use the Date/Time data type to store it.

But perhaps the use to which you plan to put this needs to be described
so
we can better help...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"paduanow" wrote in message
...
I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time
field
or a text field with a string conversion routine that puts it on the
required
format?

I will never display this date in a form or report.


--
pad






  #10  
Old September 10th, 2009, 05:22 AM posted to microsoft.public.access.tablesdbdesign
paduanow
external usenet poster
 
Posts: 20
Default Date Question

Where do I put the Format command?
--
pad


"paduanow" wrote:

I need to store todays date in a table with the following format:

yyyy,mm,dd

Example: 20090914 (09/14/2009 I need this lead zeros, my store 8
digits/char)

Default will always be todays date. Should the field be a date/time field
or a text field with a string conversion routine that puts it on the required
format?

I will never display this date in a form or report.


--
pad

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.