Y
YardDancer
Dear All,
I am upgrading my skills from VB 6.0 to VB.Net. They say you can do all
date and time calculations using the properties and methods of DateTime
structure withour recourse to the functions and properties of the VB
runtime library. (oh yeah !!!)
I have been trying to determine the year interval between two dates using
the properties and methods of the DateTime structure so that it is
consistent with the .Net Framework.
I know how to this using the properties and functions of the VB run time
library that inclues the Microsoft VisualBasic namespace.
E.g. number of years = DateDiff(DateInterval.Year, dtmBirthDate,
dtmTodaysDate)
So the question is how do i get the number of years "accurately" using the
properties and methods of DataTime structure given that
date.subtract(date) = timespan and there seems to be no direct way to
extract the year value from TimeSpan.
date.subtract(timespan) = date , but i dont see how i would get my year
from this.
Can anybody help me with this PRETTY PLEASE
Yard Dancer
I am upgrading my skills from VB 6.0 to VB.Net. They say you can do all
date and time calculations using the properties and methods of DateTime
structure withour recourse to the functions and properties of the VB
runtime library. (oh yeah !!!)
I have been trying to determine the year interval between two dates using
the properties and methods of the DateTime structure so that it is
consistent with the .Net Framework.
I know how to this using the properties and functions of the VB run time
library that inclues the Microsoft VisualBasic namespace.
E.g. number of years = DateDiff(DateInterval.Year, dtmBirthDate,
dtmTodaysDate)
So the question is how do i get the number of years "accurately" using the
properties and methods of DataTime structure given that
date.subtract(date) = timespan and there seems to be no direct way to
extract the year value from TimeSpan.
date.subtract(timespan) = date , but i dont see how i would get my year
from this.
Can anybody help me with this PRETTY PLEASE
Yard Dancer