A
awrightus
I am trying to incorporate a integer variable with a vb.net datetime
literal.
For example:
Dim Jan1 As DateTime = (#1/1/2006#) would be a literal for January 1st
of this year. But I have a integer variable that represents the
current year, intYear, for example.
Is there a way to combine the use of a integer variable with the
datetime literal? This obviously doesn't work, but I'm trying
something like this:
Dim Jan1 As DateTime = (#1/1/intYear#)
Any help appreciated. Thanks.
Steve
literal.
For example:
Dim Jan1 As DateTime = (#1/1/2006#) would be a literal for January 1st
of this year. But I have a integer variable that represents the
current year, intYear, for example.
Is there a way to combine the use of a integer variable with the
datetime literal? This obviously doesn't work, but I'm trying
something like this:
Dim Jan1 As DateTime = (#1/1/intYear#)
Any help appreciated. Thanks.
Steve