Working with Dates
Together with strings, you often need to handle dates and moments in time. To accomplish this, the .NET Framework 4.0 provides the System.DateTime
type, which is a value type.
Creating Dates
The Visual Basic grammar offers also the Date
keyword that is basically a lexical representation of the System.DateTime
object, so you can use both definitions. For consistency, we use the Date
reserved keyword but keep in mind that this keyword creates (or gets a reference ...
Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.