Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Windows
Globalization
DateTimeFormatting
DateTimeFormatter
Class DateTimeFormatter
Index
Constructor methods
constructor
Properties
calendar
clock
geographicRegion
includeDay
includeDayOfWeek
includeHour
includeMinute
includeMonth
includeSecond
includeYear
languages
longDate
longTime
numeralSystem
patterns
resolvedGeographicRegion
resolvedLanguage
shortDate
shortTime
template
Methods
format
Constructor methods
constructor
(
formatTemplate
:
string
)
:
DateTimeFormatter
Parameters
formatTemplate:
string
Returns
DateTimeFormatter
constructor
(
formatTemplate
:
string
, languages
:
IIterable
)
:
DateTimeFormatter
Parameters
formatTemplate:
string
languages:
IIterable
Returns
DateTimeFormatter
constructor
(
formatTemplate
:
string
, languages
:
IIterable
, geographicRegion
:
string
, calendar
:
string
, clock
:
string
)
:
DateTimeFormatter
Parameters
formatTemplate:
string
languages:
IIterable
geographicRegion:
string
calendar:
string
clock:
string
Returns
DateTimeFormatter
constructor
(
yearFormat
:
YearFormat
, monthFormat
:
MonthFormat
, dayFormat
:
DayFormat
, dayOfWeekFormat
:
DayOfWeekFormat
)
:
DateTimeFormatter
Parameters
yearFormat:
YearFormat
monthFormat:
MonthFormat
dayFormat:
DayFormat
dayOfWeekFormat:
DayOfWeekFormat
Returns
DateTimeFormatter
constructor
(
hourFormat
:
HourFormat
, minuteFormat
:
MinuteFormat
, secondFormat
:
SecondFormat
)
:
DateTimeFormatter
Parameters
hourFormat:
HourFormat
minuteFormat:
MinuteFormat
secondFormat:
SecondFormat
Returns
DateTimeFormatter
constructor
(
yearFormat
:
YearFormat
, monthFormat
:
MonthFormat
, dayFormat
:
DayFormat
, dayOfWeekFormat
:
DayOfWeekFormat
, hourFormat
:
HourFormat
, minuteFormat
:
MinuteFormat
, secondFormat
:
SecondFormat
, languages
:
IIterable
)
:
DateTimeFormatter
Parameters
yearFormat:
YearFormat
monthFormat:
MonthFormat
dayFormat:
DayFormat
dayOfWeekFormat:
DayOfWeekFormat
hourFormat:
HourFormat
minuteFormat:
MinuteFormat
secondFormat:
SecondFormat
languages:
IIterable
Returns
DateTimeFormatter
constructor
(
yearFormat
:
YearFormat
, monthFormat
:
MonthFormat
, dayFormat
:
DayFormat
, dayOfWeekFormat
:
DayOfWeekFormat
, hourFormat
:
HourFormat
, minuteFormat
:
MinuteFormat
, secondFormat
:
SecondFormat
, languages
:
IIterable
, geographicRegion
:
string
, calendar
:
string
, clock
:
string
)
:
DateTimeFormatter
Parameters
yearFormat:
YearFormat
monthFormat:
MonthFormat
dayFormat:
DayFormat
dayOfWeekFormat:
DayOfWeekFormat
hourFormat:
HourFormat
minuteFormat:
MinuteFormat
secondFormat:
SecondFormat
languages:
IIterable
geographicRegion:
string
calendar:
string
clock:
string
Returns
DateTimeFormatter
Properties
public
calendar
:
string
public
clock
:
string
public
geographicRegion
:
string
public
includeDay
:
DayFormat
public
includeDayOfWeek
:
DayOfWeekFormat
public
includeHour
:
HourFormat
public
includeMinute
:
MinuteFormat
public
includeMonth
:
MonthFormat
public
includeSecond
:
SecondFormat
public
includeYear
:
YearFormat
public
languages
:
IVectorView
public
static
longDate
:
DateTimeFormatter
public
static
longTime
:
DateTimeFormatter
public
numeralSystem
:
string
public
patterns
:
IVectorView
public
resolvedGeographicRegion
:
string
public
resolvedLanguage
:
string
public
static
shortDate
:
DateTimeFormatter
public
static
shortTime
:
DateTimeFormatter
public
template
:
string
Methods
public
format
(
value
:
Date
)
:
string
Parameters
value:
Date
Returns
string
Globals
Microsoft
Microsoft.Live
WinJS
WinJS.Application
WinJS.Binding
WinJS.Class
WinJS.Namespace
WinJS.Navigation
WinJS.Resources
WinJS.UI
WinJS.UI.Animation
WinJS.UI.Fragments
WinJS.UI.Pages
WinJS.UI.TrackTabBehavior
WinJS.Utilities
WinJS.Utilities.Scheduler
Windows
Windows.ApplicationModel
Windows.ApplicationModel.Activation
Windows.ApplicationModel.Background
Windows.ApplicationModel.Contacts
Windows.ApplicationModel.Contacts.Provider
Windows.ApplicationModel.Core
Windows.ApplicationModel.DataTransfer
Windows.ApplicationModel.DataTransfer.ShareTarget
Windows.ApplicationModel.Resources
Windows.ApplicationModel.Resources.Core
Windows.ApplicationModel.Resources.Management
Windows.ApplicationModel.Search
Windows.ApplicationModel.Store
Windows.Data
Windows.Data.Html
Windows.Data.Json
Windows.Data.Xml
Windows.Data.Xml.Dom
Windows.Data.Xml.Xsl
Windows.Devices
Windows.Devices.Enumeration
Windows.Devices.Enumeration.Pnp
Windows.Devices.Geolocation
Windows.Devices.Input
Windows.Devices.Portable
Windows.Devices.Printers
Windows.Devices.Printers.Extensions
Windows.Devices.Sensors
Windows.Devices.Sms
Windows.Foundation
Windows.Foundation.Collections
Windows.Foundation.Diagnostics
Windows.Foundation.Metadata
Windows.Globalization
Windows.Globalization.Collation
Windows.Globalization.DateTimeFormatting
Windows.Globalization.Fonts
Windows.Globalization.NumberFormatting
Windows.Graphics
Windows.Graphics.Display
Windows.Graphics.Imaging
Windows.Graphics.Printing
Windows.Graphics.Printing.OptionDetails
Windows.Management
Windows.Management.Core
Windows.Management.Deployment
Windows.Media
Windows.Media.Capture
Windows.Media.Devices
Windows.Media.MediaProperties
Windows.Media.PlayTo
Windows.Media.Playlists
Windows.Media.Protection
Windows.Media.Transcoding
Windows.Networking
Windows.Networking.BackgroundTransfer
Windows.Networking.Connectivity
Windows.Networking.NetworkOperators
Windows.Networking.Proximity
Windows.Networking.PushNotifications
Windows.Networking.Sockets
Windows.Security
Windows.Security.Authentication
Windows.Security.Authentication.OnlineId
Windows.Security.Authentication.Web
Windows.Security.Credentials
Windows.Security.Credentials.UI
Windows.Security.Cryptography
Windows.Security.Cryptography.Certificates
Windows.Security.Cryptography.Core
Windows.Security.Cryptography.DataProtection
Windows.Security.ExchangeActiveSyncProvisioning
Windows.Storage
Windows.Storage.AccessCache
Windows.Storage.BulkAccess
Windows.Storage.Compression
Windows.Storage.FileProperties
Windows.Storage.Pickers
Windows.Storage.Pickers.Provider
Windows.Storage.Provider
Windows.Storage.Search
Windows.Storage.Streams
Windows.System
Windows.System.Display
Windows.System.Profile
Windows.System.RemoteDesktop
Windows.System.Threading
Windows.System.Threading.Core
Windows.System.UserProfile
Windows.UI
Windows.UI.ApplicationSettings
Windows.UI.Core
Windows.UI.Core.AnimationMetrics
Windows.UI.Input
Windows.UI.Input.Inking
Windows.UI.Notifications
Windows.UI.Popups
Windows.UI.StartScreen
Windows.UI.Text
Windows.UI.ViewManagement
Windows.UI.WebUI
Windows.Web
Windows.Web.AtomPub
Windows.Web.Syndication
DayFormat
DayOfWeekFormat
HourFormat
MinuteFormat
MonthFormat
SecondFormat
YearFormat
IDateTimeFormatter
IDateTimeFormatterFactory
IDateTimeFormatterStatics
DateTimeFormatter
constructor
calendar
clock
geographicRegion
includeDay
includeDayOfWeek
includeHour
includeMinute
includeMonth
includeSecond
includeYear
languages
longDate
longTime
numeralSystem
patterns
resolvedGeographicRegion
resolvedLanguage
shortDate
shortTime
template
format