Just assume the following code in the jsp page
<%if(new Date().getHours()>=0 && new Date().getHours()<=12){//Look at the current time is between 0 o'clock and 12 noon%>Good morning<%}else{%>Good afternoon<%}%>Application example:
<div><label>Time type:</label><input id="timeType" name="timeType" required="true" data-options="valueField: 'value',textField: 'label',value:1,<%if(new Date().getHours()>=0 && new Date().getHours()<=12){//Look at the current time is between 0 o'clock and 12 noon%>data: [{'label': 'morning','value': 1,'selected':true},{'label': 'afternoon','value': 2}]"<%}else{%>data: [{'label': 'afternoon','value': 2,'selected':true}]"<%}%>/></div>