T TJS Nov 17, 2003 #1 what namespaces are required so I can do a simple calculate age from date of birth ?
K Kevin Spencer Nov 17, 2003 #2 System.DateTime -- HTH, Kevin Spencer Microsoft MVP ..Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
System.DateTime -- HTH, Kevin Spencer Microsoft MVP ..Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
C Chris Bower Nov 17, 2003 #3 In VB you can just use the DateDiff function, in C# use the TimeSpan structure.
T TJS Nov 17, 2003 #4 I added "Imports System.DateTime" to my vb file, but keep getting error on "datediff" when I try to compile ?
I added "Imports System.DateTime" to my vb file, but keep getting error on "datediff" when I try to compile ?
T TJS Nov 17, 2003 #5 I added "Imports System.DateTime" to my vb file, but keep getting error on "datediff" when I try to compile ?
I added "Imports System.DateTime" to my vb file, but keep getting error on "datediff" when I try to compile ?
T TJS Nov 18, 2003 #8 that worked thanks Chris Bower said: DateDiff is a function in the Microsoft.VisualBasic namespace. Click to expand...
that worked thanks Chris Bower said: DateDiff is a function in the Microsoft.VisualBasic namespace. Click to expand...
K Kevin Spencer Nov 18, 2003 #9 And the error was?... -- HTH, Kevin Spencer Microsoft MVP ..Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
And the error was?... -- HTH, Kevin Spencer Microsoft MVP ..Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.