I am creating some variables that will hold Dates (Ex: 5/10/2004) and Times (Ex: 5:00 PM). Is there any difference as to which data type I should use, or does it really matter?
Code:
Dim DateRequired As Date, TimeRequired as DateTime
The other thing that people have problems with (conceptually) with Date and DateTime datatypes is that they expect it to contain a date in a certain format. The important thing to remember is variables of that type only contain date/datetime values. Formatting them is the job of the presentation layer.
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.