B
Bob Day
Using VS 2003...
How do you get the time component of a datetime variable? See below.
dim Date_And_Time as datetime = #2/5/04 4:00PM#
Dim Date_Component as datetime = Date_And_Time.Date
**** this does not work
Dim Time_Component as datetime = Date_And_Time.Time
I have resorted to complicated .ToShortTimeString, moving back and forth to
strings, but there must be a better way.
Please advise. THanks!
Bob
How do you get the time component of a datetime variable? See below.
dim Date_And_Time as datetime = #2/5/04 4:00PM#
Dim Date_Component as datetime = Date_And_Time.Date
**** this does not work
Dim Time_Component as datetime = Date_And_Time.Time
I have resorted to complicated .ToShortTimeString, moving back and forth to
strings, but there must be a better way.
Please advise. THanks!
Bob