Table of Contents

Class Format.Date

Inheritance
Format.Date
Implements
Derived
Inherited Members
Namespace
TabularEditor.SemanticBridge.Platforms.Databricks.MetricView
Assembly
SemanticBridge.dll

Date: Use date format for date values with various display options.

public record Format.Date : Format, IEquatable<Format>, IEquatable<Format.Date>
Extension Methods

Constructors

Date()

public Date()

Date(Date)

[SetsRequiredMembers]
protected Date(Format.Date original)

Parameters

Type Name Description
Format.Date original

Properties

DateFormat

Controls the way the date is displayed

public required Format.DateFormatSpec DateFormat { get; set; }

Property Value

Type Description
Format.DateFormatSpec

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type Description
Type

LeadingZeros

Controls whether single digit numbers are preceded by a zero

public bool? LeadingZeros { get; set; }

Property Value

Type Description
bool?

Type

The type of format (i.e., "number", "currency", "percentage", "byte", "date", "datetime")

public override Format.FormatType Type { get; }

Property Value

Type Description
Format.FormatType

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

Type Name Description
object obj

Returns

Type Description
bool

Equals(Format?)

public override sealed bool Equals(Format? other)

Parameters

Type Name Description
Format other

Returns

Type Description
bool

Equals(Date?)

public virtual bool Equals(Format.Date? other)

Parameters

Type Name Description
Format.Date other

Returns

Type Description
bool

GetHashCode()

public override int GetHashCode()

Returns

Type Description
int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

Type Name Description
StringBuilder builder

Returns

Type Description
bool

ToString()

public override string ToString()

Returns

Type Description
string

Operators

operator ==(Date?, Date?)

public static bool operator ==(Format.Date? left, Format.Date? right)

Parameters

Type Name Description
Format.Date left
Format.Date right

Returns

Type Description
bool

operator !=(Date?, Date?)

public static bool operator !=(Format.Date? left, Format.Date? right)

Parameters

Type Name Description
Format.Date left
Format.Date right

Returns

Type Description
bool