|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Returns a Date value containing the current date and time according to your system.
ReadOnly Public Property Now() As DateTime
To set the system date, use the Today property. To set the system time, use the TimeOfDay property.
This example uses the Now property to return the current system date and time.
Dim ThisMoment As Date ThisMoment= Now ' Assign current system date and time.
Assembly: Microsoft Visual Basic .NET Runtime (in Microsoft.VisualBasic.dll)
Because Now is a member of a module, rather than of a class, you do not need to create an object on which to access Now.
Day Function | Hour Function | Minute Function | Month Function | Second Function | TimeOfDay Property | Weekday Function | Year Function | TimeOfDay Property | Today Property | Date Data Type | System Namespace | DateTime Structure | ArgumentOutOfRangeException Class