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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Format



 
 
Thread Tools Display Modes
  #11  
Old June 24th, 2008, 02:59 PM posted to microsoft.public.access.queries
Jeff Boyce
external usenet poster
 
Posts: 1,555
Default Date Format

Inclusive or exclusive?

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

"Bob Barrows [MVP]" wrote in message
...
And how many days are actually between these two dates ... ?
Fewer than 104 I would imagine ... :-)

Jeff Boyce wrote:
Jim

I'm not understanding your problem...

When I subtract 313 from 417, I get 104.


"Jim" wrote in message
...
I am working with a government database that has a number field that
contains date information formatted to read 20080623. I am trying to
get the difference between two dates, but it's showing the
difference between 20080313 and 20080417 as 104 days. I've tried a
number of fixes shown for others, but I keep getting a message that
the fix is too complicated. Any ideas on how to fix this so that a
beginner can figure it out?


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"



  #12  
Old June 26th, 2008, 12:19 AM posted to microsoft.public.access.queries
Bob Barrows [MVP]
external usenet poster
 
Posts: 441
Default Date Format

Seriously? How many days are there between March 13 and April 17?
More like 36, isn't it?
Or are you arguing that those numbers might not represent those dates ... ?

Jeff Boyce wrote:
Inclusive or exclusive?


"Bob Barrows [MVP]" wrote in message
...
And how many days are actually between these two dates ... ?
Fewer than 104 I would imagine ... :-)

Jeff Boyce wrote:
Jim

I'm not understanding your problem...

When I subtract 313 from 417, I get 104.


"Jim" wrote in message
...
I am working with a government database that has a number field
that contains date information formatted to read 20080623. I am
trying to get the difference between two dates, but it's showing
the difference between 20080313 and 20080417 as 104 days. I've
tried a number of fixes shown for others, but I keep getting a
message that the fix is too complicated. Any ideas on how to fix
this so that a beginner can figure it out?


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


  #13  
Old June 27th, 2008, 02:37 PM posted to microsoft.public.access.queries
Jeff Boyce
external usenet poster
 
Posts: 1,555
Default Date Format

If the difference is showing as described, the OP isn't doing "date" math.

Let's check back with the OP to see if the field is a Date/Time field, or if
the numbers are just numbers...

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

"Bob Barrows [MVP]" wrote in message
...
Seriously? How many days are there between March 13 and April 17?
More like 36, isn't it?
Or are you arguing that those numbers might not represent those dates ...

?

Jeff Boyce wrote:
Inclusive or exclusive?


"Bob Barrows [MVP]" wrote in message
...
And how many days are actually between these two dates ... ?
Fewer than 104 I would imagine ... :-)

Jeff Boyce wrote:
Jim

I'm not understanding your problem...

When I subtract 313 from 417, I get 104.


"Jim" wrote in message
...
I am working with a government database that has a number field
that contains date information formatted to read 20080623. I am
trying to get the difference between two dates, but it's showing
the difference between 20080313 and 20080417 as 104 days. I've
tried a number of fixes shown for others, but I keep getting a
message that the fix is too complicated. Any ideas on how to fix
this so that a beginner can figure it out?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"



  #14  
Old June 27th, 2008, 04:31 PM posted to microsoft.public.access.queries
Bob Barrows [MVP]
external usenet poster
 
Posts: 441
Default Date Format

Jeff Boyce wrote:
If the difference is showing as described, the OP isn't doing "date"
math.


Exactly! He WANTS to do date math,

"I'm trying to get the difference between two dates, but ..."

but he could not figure out how to convert his numbers to proper dates so he
could do date arithmetic with them..

Let's check back with the OP to see if the field is a Date/Time
field, or if the numbers are just numbers...


No need. He told us exactly what the data type was:

" ... database has a number field that contains date information formatted
to read 20080623"

Come on, Jeff: time to let this go. Everyone else in the thread understood
the problem.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


  #15  
Old June 29th, 2008, 02:57 PM posted to microsoft.public.access.queries
Jeff Boyce
external usenet poster
 
Posts: 1,555
Default Date Format

Forest for the trees ...

Thanks, Bob!

Jeff

"Bob Barrows [MVP]" wrote in message
...
Jeff Boyce wrote:
If the difference is showing as described, the OP isn't doing "date"
math.


Exactly! He WANTS to do date math,

"I'm trying to get the difference between two dates, but ..."

but he could not figure out how to convert his numbers to proper dates so

he
could do date arithmetic with them..

Let's check back with the OP to see if the field is a Date/Time
field, or if the numbers are just numbers...


No need. He told us exactly what the data type was:

" ... database has a number field that contains date information

formatted
to read 20080623"

Come on, Jeff: time to let this go. Everyone else in the thread understood
the problem.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"



 




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 06:26 AM.


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