Export (0) Print
Expand All

DateAndTime Members

The DateAndTime module contains the procedures and properties used in date and time operations.

The following tables list the members exposed by the DateAndTime type.

  Name Description
Public property Static Supported by the .NET Compact Framework DateString Returns or sets a String value representing the current date according to your system.
Public property Static Supported by the .NET Compact Framework Now Returns a Date value containing the current date and time according to your system.
Public property Static Supported by the .NET Compact Framework TimeOfDay Returns or sets a Date value containing the current time of day according to your system.
Public property Static Supported by the .NET Compact Framework Timer Returns a Double value representing the number of seconds elapsed since midnight.
Public property Static Supported by the .NET Compact Framework TimeString Returns or sets a String value representing the current time of day according to your system.
Public property Static Supported by the .NET Compact Framework Today Returns or sets a Date value containing the current date according to your system.
Top

(see also Protected Methods )
  Name Description
Public method Static Supported by the .NET Compact Framework DateAdd Overloaded. Returns a Date value containing a date and time value to which a specified time interval has been added.
Public method Static Supported by the .NET Compact Framework DateDiff Overloaded. Returns a Long value specifying the number of time intervals between two Date values.
Public method Static Supported by the .NET Compact Framework DatePart Overloaded. Returns an Integer value containing the specified component of a given Date value.
Public method Static Supported by the .NET Compact Framework DateSerial Returns a Date value representing a specified year, month, and day, with the time information set to midnight (00:00:00).
Public method Static Supported by the .NET Compact Framework DateValue Returns a Date value containing the date information represented by a string, with the time information set to midnight (00:00:00).
Public method Static Supported by the .NET Compact Framework Day Returns an Integer value from 1 through 31 representing the day of the month.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static Supported by the .NET Compact Framework Hour Returns an Integer value from 0 through 23 representing the hour of the day.
Public method Static Supported by the .NET Compact Framework Minute Returns an Integer value from 0 through 59 representing the minute of the hour.
Public method Static Supported by the .NET Compact Framework Month Returns an Integer value from 1 through 12 representing the month of the year.
Public method Static Supported by the .NET Compact Framework MonthName Returns a String value containing the name of the specified month.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static Supported by the .NET Compact Framework Second Returns an Integer value from 0 through 59 representing the second of the minute.
Public method Static Supported by the .NET Compact Framework TimeSerial Returns a Date value representing a specified hour, minute, and second, with the date information set relative to January 1 of the year 1.
Public method Static Supported by the .NET Compact Framework TimeValue Returns a Date value containing the time information represented by a string, with the date information set to January 1 of the year 1.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Static Supported by the .NET Compact Framework Weekday Returns an Integer value containing a number representing the day of the week.
Public method Static Supported by the .NET Compact Framework WeekdayName Returns a String value containing the name of the specified weekday.
Public method Static Supported by the .NET Compact Framework Year Returns an Integer value from 1 through 9999 representing the year.
Top

  Name Description
Protected method Supported by the .NET Compact Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft