Skip to main content
A newer version of this page is available. .

DataItemDateTimeFormat Class

Contains formatting settings for date-time values.

Declaration

export class DataItemDateTimeFormat extends SerializableModel

Remarks

The DataItemDateTimeFormat class provides settings that allow you to select format types for date-time dimension values displayed for different group intervals (like Year, Month, Year-Quarter, etc.). This class defines a number of properties used to specify a format type that corresponds to a particular group interval.

Note that date-time fields can originate measures. If a measure calculates a maximum or minimum summary, the resulting values are of the date-time type. These values are formatted with the DataItemDateTimeFormat.dateFormat setting. For measures, all other settings provided by this class are ignored.

Use the DataItem.dateTimeFormat property to access date-time format settings.

constructor

Initializes a new instance of the DataItemDateTimeFormat class.

Declaration

constructor(
    modelJson?: any,
    serializer?: ModelSerializer
)

Parameters

Name Type Description
modelJson any

A JSON object used for dashboard deserialization. Do not pass this parameter directly.

serializer ModelSerializer

An object used for dashboard deserialization. Do not pass this parameter directly.

Properties

dateFormat Property

Specifies the format type associated with the DayMonthYear group interval.

Declaration

dateFormat: ko.Observable<DateFormat>

Property Value

Type Description
Observable<DateFormat>

A DateFormat value that specifies the format type associated with the DayMonthYear group interval.

dateHourFormat Property

Specifies the format type associated with the DateHour group interval.

Declaration

dateHourFormat: ko.Observable<DateTimeFormat>

Property Value

Type Description
Observable<DateTimeFormat>

A DateTimeFormat value that specifies the format type associated with the DayDateHour group interval.

dateHourMinuteFormat Property

Declaration

dateHourMinuteFormat: ko.Observable<DateTimeFormat>

Property Value

Type
Observable<DateTimeFormat>

dateTimeFormat Property

Declaration

dateTimeFormat: ko.Observable<DateTimeFormat>

Property Value

Type
Observable<DateTimeFormat>

dayOfWeekFormat Property

Declaration

dayOfWeekFormat: ko.Observable<DayOfWeekFormat>

Property Value

Type
Observable<DayOfWeekFormat>

exactDateFormat Property

Declaration

exactDateFormat: ko.Observable<ExactDateFormat>

Property Value

Type
Observable<ExactDateFormat>

hourFormat Property

Declaration

hourFormat: ko.Observable<HourFormat>

Property Value

Type
Observable<HourFormat>

monthFormat Property

Declaration

monthFormat: ko.Observable<MonthFormat>

Property Value

Type
Observable<MonthFormat>

quarterFormat Property

Declaration

quarterFormat: ko.Observable<QuarterFormat>

Property Value

Type
Observable<QuarterFormat>

yearFormat Property

Declaration

yearFormat: ko.Observable<YearFormat>

Property Value

Type
Observable<YearFormat>

Methods

getInfo Method

For internal use.

Declaration

getInfo(): ISerializationInfoArray

Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.