在本例中,这个帮助并不是很智能,因为它并不能说明用户所请求的现场,确定日期格式就需要用到该现场。
In this case, this helper isn't terribly intelligent as it does not account for the user's requested locale, which should be used to determine the proper date format.
这个例子展示了如何用 <f:convertDateTime/>确保用户的生日可以转换为格式为MM/yyyy(月 /年)的日期对象。
This example demonstrates how to use <f:convertDateTime/> to ensure the user's birth date is convertible into a date object formatted as MM/yyyy (month/year).
当用户从下拉菜单中选择了一个日期后,它必须被格式化为相应的字符串,需要进行反向查找,也就是根据索引查找缩写。
When a user selects a date from the drop down menu, it has to be formatted into the corresponding string, requiring the opposite lookup, namely the acronym given the index.
在一台机器上,地区代表用户选择的显示语言(例如,英语或西班牙语),以及日期、时间、货币等方面的格式化约定。
On a single machine, the locale indicates the user's preference for the language displayed (for example, English or Spanish), as well as formatting conventions for date, time, currency, and so on.
这个日期选择器能让用户非常方便地从下拉框中选择正确格式的日期。
The DatePicker lets users easily select valid dates from a dropdown calendar.
这些UI元素显示出用户的开始和结束日期,加上一个标签,您可以自定义格式。
These UI elements indicate to users when the start and end dates are, with an accompanying label which you can custom format.
设计师开始想像这样的情况:用户在一行中连续50次接受相同的日期格式,然后手工输入一次不同的格式。
Designers start to imagine situations like this: the user accepts the same date format 50 times in a row, and then manually enters a different format once.
设计师开始想像这样的情况:用户在一行中连续50次接受相同的日期格式,然后手工输入一次不同的格式。
Designers start to imagine situations like this: the user accepts the same date format 50 times in a row, and then manually enters a different format once.
应用推荐