You can display the current date or time in a data table, or elsewhere
in your Web application.
Example: the following snippet reads the current date/time
and puts it to the data source's
DATEOPEN property, which
is then mapped to the TIMESTAMP column
...
Calendar rightNow = Calendar.getInstance();
ad.put("DATEOPEN",rightNow.getTime());
...
Drag an Output component from the palette to the data
table. Then fill in the following properties in the Properties view for the
Output component:
- Value: varsresults.DATEOPEN
- Style Props: font-size: 9pt; font-style:
italic
- Date style: 20/10/03 (short)
- Time style: 11:16 (short)