Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
titleDefinition定义

 日期格式化  允许您将现有的日期到另一个日期格式。The Date Formatter allows you to transform existing date to another date format.


Figure 1: Date Formatter Properties

图1:日期格式化属性

名称描述
数据日期格式

在Java日期格式。例如,yyyy

NameDescription
Data Date Format

In Java date format. e.g., yyyy-MM-dd for 2011-06-01
Please see simpleDateFormat for list of formats.请参阅simpleDateFormat获取格式列表。

显示日期格式

在Java日期格式。

例如2001年6月1日的dd

Display Date Format

In Java date format.

e.g., dd / MM / yyyy for 01/06/2001

Sample Usage

In this example, we will format the column "Date Created" (dateCreated in database table) to another date format in Datalist Builder.

Image Removed

Figure 2: SQL client view on data table

The Data Date Format that we should set should be based on preview from the Datalist Builder itself.

In Joget Workflow v5, it may be subjected to the system locale and date format attributes set in the System Settings. (Please see General Settings - Server Locale and Time Zone for more information)

Image Removed

Figure 3: Datalist Builder list view without Date Formatter

In this example, the Data Date Format would be "dd-MM-yyyy hh:mm aa".

Image Removed

Figure 4: Date Formatter properties

Image Removed

样例用法

在这个例子中,我们将在列表设计器中将“列表数据列”(dateCreated在数据库表中)格式设置为另一种日期格式。

Image Added

图2:数据表上的SQL客户端视图

我们应该设置的  数据日期格式 应该基于Datalist Builder本身的预览。

在工作流Joget V5,它可以经受的系统区域和日期格式  属性在设置常规设置。(请参阅  常规设置 - 服务器区域设置和时区以获取更多信息)

Image Added

图3:没有日期格式化器的列表设计器列表视图

在这个例子中,  数据日期格式 是“dd-MM-yyyy hh:mm aa”。

Image Added

图4:日期格式化程序属性

Image Added

图5:在列表筛选项上启用日期格式化的列表视图Figure 5: Datalist Builder list view with Date Formatter enabled on Date Created column