TDateTime is a float type - integer part is days, decimal part is fraction of a day. To express in years, divide the result by the length of a year (365.25 days). Do not use the decode date function because it is not a date you are after. Terry --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
- [DUG]: Date/Time calculations Patrick Dunford
- RE: [DUG]: Date/Time calculations Myles Penlington
- RE: [DUG]: Date/Time calculations Chris Crowe
- RE: [DUG]: Date/Time calculations Terry Johnson
- RE: [DUG]: Date/Time calculations Greg Nixon
- Re: [DUG]: Date/Time calculations Rohit Gupta
- RE: [DUG]: Date/Time calculations Carl Reynolds
- RE: [DUG]: Date/Time calculations Patrick Dunford
- Re: [DUG]: Date/Time calculations Backup Co
- RE: [DUG]: Date/Time calculations Myles Penlington
- RE: [DUG]: Date/Time calculations Carl Reynolds
- RE: [DUG]: Date/Time calculations Patrick Dunford
- RE: [DUG]: Date/Time calculations Colin Fraser
- Re: [DUG]: Date/Time calculations Neven MacEwan