ADO adDate Value Calculation
- From: "Philip Siaw" <nospam@xxxxxxxxxxxx>
- Date: Thu, 14 Dec 2006 12:53:34 +0800
adDate(7) indicates a date value.
A date is stored as a double, the whole part of which is the number of days
since December 30, 1899,
and the fractional part of which is the fraction of a day.
Given a timestamp value for example 2000-12-28 09:30:00
I need to calculate the corresponding adDate Value.
I am able to calculate the number of days since December 30, 1899,
but I don't know the formula for calculating the fraction of a day.
Any idea on calculating the fraction of a day, and what is the precision of
the scale?
Thank you.
.
- Follow-Ups:
- Re: ADO adDate Value Calculation
- From: Stephen Howe
- Re: ADO adDate Value Calculation
- From: Mark McGinty
- Re: ADO adDate Value Calculation
- Prev by Date: RE: SqlTransaction, t-sql transactions, and distributed transactions
- Next by Date: Re: ADO adDate Value Calculation
- Previous by thread: Re: SqlTransaction, t-sql transactions, and distributed transactions
- Next by thread: Re: ADO adDate Value Calculation
- Index(es):
Relevant Pages
|
|