Portlet Factory, Version 6.1.2
Formatting Date and Time values
IBM® WebSphere Portlet Factory Designer provides several builders you can use to control the formatting of date, time, and datetime values.
In most cases these values are stored in variables, and their formats can be controlled individually or globally throughout the model or application. You can customize date and time formats for display, and also perform validation of user input of date and time values. The IBM WebSphere Portlet Factory Designer includes a StandardFormatter class that is used to control date and time formatting operations.
Parent topic: Overview: creating forms
- Validate Date or Time user input
There are two ways you can validate Data or Time input data.
- Formatting an individual date or time entry
Use the Data Field Modifier builder to control the format of a specific Date, Time, or DateTime value.
- Setting up an application-wide date and time format
Use the Data Page Formatter builder to control the display of date and time values in a specific format.
- Validating with the Data Field Modifier builder
The Data Field Modifier builder can be used to validate dates and times.
- Validating date and time with the Date/Time Formatter builder
The Date/Time Formatter builder can be used to validate dates and times.
- Data Field Modifier builder
Use the Data Field Modifier builder to modify one or more fields created by a Data Page builder call.
- Date / Time Formatter builder
Use the Date / Time Formatter builder to control the display of fields in a form that contain a date, time, or date-time value.
Library | Support |