Skip to content
This repository has been archived by the owner on Feb 10, 2020. It is now read-only.

Latest commit

 

History

History
61 lines (37 loc) · 904 Bytes

date-time.md

File metadata and controls

61 lines (37 loc) · 904 Bytes

date-time

image

Properties

label:

Field Label

  • Type: string
  • Required: No
  • Default: 'Date'

currentDate:

The current date and time at initialization.

  • Type: string
  • Required: No

locale:

The localization for the display of the date and time.

  • Type:string
  • Required: No

is12Hour:

Whether the current timezone is a 12 hour time.

  • Type: bool
  • Required: No

initialOpen:

  • Type: bool
  • Required: No

For more read gutenberg readme.

Example:

dateTime: {
	type: 'string',
	field: {
		type: 'date-time',
		placement: 'inspector',
	},
}

Return

This will return date and time as string. For eg. 2018-04-13T18:09:59

  • Type: string