DateAndTime Properties

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The DateAndTime type exposes the following members.

Properties

  Name Description
Public propertyStatic member DateString Returns or sets a String value representing the current date according to your system.
Public propertyStatic member Now Returns a Date value containing the current date and time according to your system.
Public propertyStatic member TimeOfDay Returns or sets a Date value containing the current time of day according to your system.
Public propertyStatic member Timer Returns a Double value representing the number of seconds elapsed since midnight.
Public propertyStatic member TimeString Returns or sets a String value representing the current time of day according to your system.
Public propertyStatic member Today Returns or sets a Date value containing the current date according to your system.

Top