Struct ComDate
- Namespace
- CsCom.Runtime
- Assembly
- CsCom.Runtime.dll
An OLE Automation date (DATE). It has the layout of DATE, so it can be used in blittable structures,
and converts implicitly to and from DateTime.
public readonly record struct ComDate : IEquatable<ComDate>
- Implements
- Inherited Members
Constructors
ComDate(double)
An OLE Automation date (DATE). It has the layout of DATE, so it can be used in blittable structures,
and converts implicitly to and from DateTime.
public ComDate(double Value)
Parameters
ValuedoubleThe OLE Automation date: the number of days since midnight, 30 December 1899.
Properties
Value
The OLE Automation date: the number of days since midnight, 30 December 1899.
public double Value { get; init; }
Property Value
Methods
ToDateTime()
Converts the date to a DateTime.
public DateTime ToDateTime()
Returns
Exceptions
- ArgumentException
Value is not a valid OLE Automation date.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
implicit operator DateTime(ComDate)
public static implicit operator DateTime(ComDate value)
Parameters
valueComDate
Returns
implicit operator ComDate(DateTime)
public static implicit operator ComDate(DateTime value)
Parameters
valueDateTime