Hie
I want that on selecting a value from date picker it should be stored at DD/MMM/YYYY format. Not able to find a way. I tried like:
DateBox dateOfBirth = new DateBox();
dateOfBirth.addValueChangeHandler(new ValueChangeHandler<Date>(){
@Override
public void onValueChange(ValueChangeEvent<Date> event) {
DefaultFormat format = new DateBox.DefaultFormat();
dateOfBirth.setValue(format.parse(dateOfBirth, "dd/mmm/yyyy", true));
}});
Please advise.
Thankx and Regards
Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org