StyleCode Property: dateFormat

dateFormat

Specifies the format used to print out dates.

Applies toTypeDefault
linechart > haxis > value
scalar > entry > value
summary > entry > value
table > column > value
date,defaultdefault

Examples

// Example: linechart > haxis > value
{ haxis { value { dateFormat: default } } }
show linechart "My Chart" a1b6 with
  Day.StockOnHand
  Day.StockOnOrder

// Example: scalar > entry > value
show scalar "My Scalar" a1 tomato with
  sum(Quantity) { value { dateFormat: default } }

// Example: summary > entry > value
show summary "My Scalar" a1b3 tomato with
  sum(Quantity) { value { dateFormat: default } }
  sum(NetAmount)

// Example: table > column > value
show table "My Table" a1c4 tomato with
  Orders.Date { value { dateFormat: default } }
  Orders.Quantity

Details

The default value will be interpreted differently depending on the context. It usually is ddd MMM d, yyyy (e.g. “Mon Jan 1, 2001”) but will be instead MMM d, yyyy (e.g. “Jan 1, 2001”) in narrow contexts, such as a scalar tile of width 1.