PC Review


Reply
Thread Tools Rate Thread

Dates - 2 questions

 
 
Rohan via AccessMonster.com
Guest
Posts: n/a
 
      31st Jan 2006
Question 1.

I have a query where I ask for expr1: Now()-submission_date where
submission date is a date
datatype in the database. I get the number of days and a remainder, eg. 27.
38962963 the remainder
is the same for each result. What gives ?

Question 2.

How do I find the date four months before any given date ?

Rohan.

--
Message posted via http://www.accessmonster.com
 
Reply With Quote
 
 
 
 
Rohan via AccessMonster.com
Guest
Posts: n/a
 
      1st Feb 2006
Thank you both.

Rohan.

--
Message posted via http://www.accessmonster.com
 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      1st Feb 2006
On Tue, 31 Jan 2006 19:20:09 -0500, "Al Camp" <(E-Mail Removed)> wrote:

> Access really stores dates as floating point decimal numbers, Years on
>the left of the decimal, and Seconds on the right.


Actually it's a count of days (the left of the decimal) and fractions
of a day (to the right) since midnight, December 30, 1899. E.g.

?now
1/31/2006 6:38:26 PM
?cdbl(now())
38748.7768518519
?cdbl(#12/30/1999 12:00:00#)
36524.5


John W. Vinson[MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about formating Dates Cal Who Microsoft ASP .NET 8 7th Apr 2010 10:19 AM
Questions about formating Dates Cal Who Microsoft ASP .NET 0 3rd Apr 2010 01:28 PM
RE: Dates - 2 questions =?Utf-8?B?S0FSTCBERVdFWQ==?= Microsoft Access 0 1st Feb 2006 12:21 AM
Re: Dates - 2 questions Al Camp Microsoft Access 0 1st Feb 2006 12:20 AM
2 questions regarding Dates =?Utf-8?B?QW50aG9ueSBTbGF0ZXI=?= Microsoft Excel Misc 6 20th Dec 2004 02:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 AM.