Because the datetimepicker weblet is the default visualization for fields of type datetime, you usually do not need to manually add it to your web page. Simply include your date fields in your web_map or in a list that is present in your web_map and they will be visualized using the datetimepicker weblet. Similarly fields of type time and of type date will be visualized using the timepicker (std_timepicker) and datepicker (std_datepicker) weblets.
Datetime fields created before version 12 SP1 use the std_datetime weblet by default. To use std_datetimepicker, change the weblet visualization in the field definition.
The Datetimepicker weblet uses the ISO language code to localize some properties (e.g. date format, first day of the week) and calendar and time slider captions.
If you do need to add the datetimepicker weblet to your page manually, simply drag the datetime field from the Fields tab onto your page. Alternatively, open the XSL for your webroutine in the LANSA Editor and follow these steps:
1. Click on the Weblets tab, select Standard Field Visualization from the drop-down list near the top and locate the jQuery UI Datetimepicker weblet.
2. Drag the weblet onto your page in the Design view. Click on the weblet and then click on the Details tab.
3. Set the name and value properties as required to associate the weblet with the required field in your webroutines web_map.