Set Date into Textbox with DateFormat
public FrmDate() { //Constructor
initWidget(uiBinder.createAndBindUi(this));
.
.
setDateFormat();
dbFrom.setValue(new Date());
dbTo.setValue(new Date());
.
}
private void setDateFormat() {
dbFrom.setFormat(new DateBox.DefaultFormat (DateTimeFormat.getFormat("dd/MM/yyyy")));
dbTo.setFormat(new DateBox.DefaultFormat (DateTimeFormat.getFormat("dd/MM/yyyy")));
}
No comments:
Post a Comment