Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 2.22 KB

datetimecolumn.md

File metadata and controls

54 lines (44 loc) · 2.22 KB
author ms.author ms.date title ms.localizationpriority
JeremyKelley
JeremyKe
09/11/2017
DateTimeColumn - OneDrive API
Medium

DateTimeColumn resource type

The dateTimeColumn on a columnDefinition resource indicates that the column's values are dates or times.

JSON representation

Here is a JSON representation of a dateTimeColumn resource.

{
  "displayAs": "default | friendly | standard",
  "format": "dateOnly | dateTime"
}

Properties

Property name Type Description
displayAs string How the value should be presented in the UX. Must be one of default, friendly, or standard. See below for more details. If unspecified, treated as default.
format string Indicates whether the value should be presented as a date only or a date and time. Must be one of dateOnly or dateTime

DisplayAs options

Value Description
default Uses the default rendering in the UX.
friendly Uses a friendly relative representation (eg. "today at 3:00 PM")
standard Uses the standard absolute representation (eg. "5/10/2017 3:20 PM")