Fastream Technologies wrote:

>Hello,
>
>I need to get one of the following:
>
>- either days passed since 1,1, 2000
>
>OR
>
>- TDateTime of 1,1,2000. 
>
The DateDiff function in SysTools, a formerly TurboPower library now
open source on SourceForge, will compute the difference between two
dates, giving the results in years, months, and days.

Or in the same library, the DateStringToDMY function will provide the
TDateTime(after translation from STDate) from a given datestring using a
'picture' of the datestring format (e.g. 'mm,dd,yyyy').

In either case, you will need to translate back and forth between
TDateTime and STDate types, but the functions for these operations are
also in SysUtils.

Hope this helps.

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to