Renders datepicker element. Format supported by this component are:-
Format | Description |
#dd | Display day in two digits format |
#d | Try to display day in one digit format, if cannot use 2 digit format |
#MM | Display month in two digits format |
#M | Try to display month in one digits format, if cannot use 2 digit format |
#yyyy | Display year in four digits format |
#yy | Display the last two digits of the yaer |
#y | Display the last digits of the year |
Examples Example 1: <s:datepicker name="order.date" label="Order Date" /> Example 2: <s:datepicker name="delivery.date" label="Delivery Date" format="#yyyy-#MM-#dd" />
The css could be changed by using the following :-
<s:datepicker name="birthday" label="Birthday" templateCss="...." />
@s.tag name="datepicker" tld-body-content="JSP" tld-tag-class="org.apache.struts2.views.jsp.ui.DatePickerTag"description="Render datepicker"