Presto
GitHub
Getting Started
Packages
View Model
Final Form
REST
Routing
UI
FieldFormatter
FieldWidget
getFormatterForField
InputProps
UiProvider
useUi
Formatters
BooleanFormatter
CharFormatter
ChoiceFormatter
DateFormatter
DateTimeFormatter
ImageFormatter
JsonFormatter
LinkFormatter
NumberFormatter
RangeFormatter
TimeFormatter
UI ANTD
Util
On this page
Props
Examples
basic
DateTimeFormatter
Source
import { DateTimeFormatter } from "@prestojs/ui";
DateTimeFormatter
(
props
)
Source
Component Props:
Prop
Type
Description
*
props
An object with the properties below
props.blankLabel
ReactNode
props.invalidDateLabel
ReactNode
props.localeOptions
localeOptions
props.locales
string
|
string
[]
*
props.value
Date
|
string
|
null
Examples
Javascript
Typescript
basic
Show Code