When you select "Date" from date, time type "date" "time" "date and time", items to handle year, month, day are prepared. The year can be specified in the range from 1753 to 9999.
Date type items are internally managed as java.sql.Date class.
The entered value is corrected by "filter". For details, please read "Input filter specifications".
For date type items, input fields as shown in Fig. 3 are prepared.
Inputs other than numbers and hyphens ("-") result in errors as shown in Figure 4.If you enter it normally, it looks like Figure 5.
When you click on the input field, the calendar is displayed as shown in Fig.
From the "Input control" tab of the model item detail definition dialog, set the date input method to "use calendar". (The date type standard is "use of calendar".)
By default, the width of the input field is the width of the calendar displayed as pulldown.You can adjust this width. For details, please refer to "Input control> input field length> date type (using calendar)".
You can also enter dates in list box format instead of calendar. Figure 8 is a list box for entering only the year.(We treat month and day as January 1 automatically.)
Figure 9 shows an example of entering year and month in list box format.(Day is automatically treated as one day.)
Figure 10 shows an example of entering the year, month, day in a list box format.
When using the list box, you can specify the start year and end year (displayed as choices). Figure 11 shows an example in which the start year is 1950 and the end year is the current year.
As shown in Figure 12, the year starts from 1950.
Separate the specified formats with a comma as follows.
You can also use the notation "now" for the start and end years.This now means the current year. Here is an example.
The date auto format function is a function to automatically convert from various input patterns to yyyy - MM - dd format.
Enter "5 20" and convert automatically when you release the cursor.
There is no definition part.For calendar input, date auto formatting is automatically enabled.(It can not be invalidated.)
Enter "11 7" and convert automatically when you release the cursor.
In the model item details dialog, set the date input method option to empty (directly input), and input the date directly in the text box. Then set the check on "Enable Date Auto Formatting Function".
An example of conversion pattern is shown below.
|Input value||After conversion|
|H26 11 7||2014-11-07|
|2014/11/7 or 2014/11/07||2014-11-07|
|2014 11 07||2014-11-07|
|s 47 5 15||1972-05-15|
The date and time format is specified on the "Output control" tab.
It is a framework of output control, but it is also applied when entering.
The format is "MM month" "dd day" and "M month" "d day" are prepared.In MM or dd format, "January" is always written with two digits as January.
Instead of Wagby's standard format, the developer can write the format directly.
You can display it in a different date format next to the input field. Figure 21 shows an example of specifying the format "(Heisei Year Year Month Day Sun Day)".
As shown in Figure 20, the date is displayed next to the entry field.This option display is valid on the registration and update screen.
The formats provided are as follows.
Options can also be specified for output control.(FIGS. 23 and 24)
Heisei Year is listed as Heisei Year when you set the Japanese calendar format with "input control> date/time> option display (date)" and "output control> format".