system.datetime.now;
DateTime.Now 属性请参见
DateTime 结构 | DateTime 成员 | System 命名空间 | DateTime 成员(Visual J# 语法) | C++ 托管扩展编程 
要求
平台: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列, .NET Framework 精简版 - Windows CE .NET, 公共语言基础结构 (CLI) 标准
语言
C#C++JScriptVisual Basic全部显示
获取一个 DateTime,它是此计算机上的当前本地日期和时间。[Visual Basic]
Public Shared ReadOnly Property Now As DateTime[C#]
public static DateTime Now {get;}[C++]
public: __property static DateTime get_Now();[JScript]
public static function get Now() : DateTime;属性值
其值为当前日期和时间的 DateTime。