Class Format.Date
- Inheritance
-
Format.Date
- Implements
-
- Derived
-
- Inherited Members
-
Date: Use date format for date values with various display options.
public record Format.Date : Format, IEquatable<Format>, IEquatable<Format.Date>
- Extension Methods
-
Constructors
[SetsRequiredMembers]
protected Date(Format.Date original)
Parameters
Properties
Controls the way the date is displayed
public required Format.DateFormatSpec DateFormat { get; set; }
Property Value
protected override Type EqualityContract { get; }
Property Value
Controls whether single digit numbers are preceded by a zero
public bool? LeadingZeros { get; set; }
Property Value
The type of format (i.e., "number", "currency", "percentage",
"byte", "date", "datetime")
public override Format.FormatType Type { get; }
Property Value
Methods
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
public override sealed bool Equals(Format? other)
Parameters
| Type |
Name |
Description |
| Format |
other |
|
Returns
public virtual bool Equals(Format.Date? other)
Parameters
Returns
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
Returns
public override string ToString()
Returns
Operators
public static bool operator ==(Format.Date? left, Format.Date? right)
Parameters
Returns
public static bool operator !=(Format.Date? left, Format.Date? right)
Parameters
Returns