DateFormattingInfo
Provides the date formatting information for the current user.
Available for
Model-driven apps
Properties
abbreviatedDayNames
{ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }
Type: string
abbreviatedMonthGenitiveNames
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "" }
Type: string[]
abbreviatedMonthNames
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "" }
Type: string[]
amDesignator
"AM"
Type: string
calendar
Type: object
The calendar
object contains the following properties:
Name | Type | Description |
---|---|---|
algorithmType |
number |
1 |
calendarType |
number |
1 |
maxSupportedDateTime |
Date |
"/Date(253402300799999)/" |
minSupportedDateTime |
Date |
"/Date(-62135568000000)/" |
twoDigitYearMax |
number |
2029 |
calendarWeekRule
Type: number
dateSeparator
"/"
Type: string
dayNames
{ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }
Type: string[]
firstDayOfWeek
Type: number
The firstDayOfWeek
property can be set to one of the following values:
Value | Meaning |
---|---|
0 | Sunday |
1 | Monday |
2 | Tuesday |
3 | Wednesday |
4 | Thursday |
5 | Friday |
6 | Saturday |
fullDateTimePattern
"dddd, MMMM d, yyyy h:mm:ss tt"
Type: string
longDatePattern
dddd, MMMM d, yyyy"
Type: string
longTimePattern
"hh:mm:ss tt"
Type: string
monthDayPattern
"MMMM dd"
Type: string
monthGenitiveNames
{ "January", "February", "March", ... "December", "" }
Type: string[]
monthNames
{ "January", "February", "March", ... "December", "" }
Type: string[]
pmDesignator
"PM"
Type: string
shortDatePattern
"M/d/yyyy"
Type: string
shortTimePattern
"h:mm tt"
Type: string
shortestDayNames
{ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" }
Type: string[]
sortableDateTimePattern
yyyy'-'MM'-'dd'T'HH':'mm':'ss"
Type: string
timeSeparator
":"
Type: string
universalSortableDateTimePattern
"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"
Type: string
yearMonthPattern
"MMMM yyyy"
Type: string
Related articles
Power Apps component framework API reference
Power Apps component framework overview
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho