Hi,
Try this code in the exit event of the date field.
if (this.formattedValue == this.rawValue) {
var parts = this.rawValue.split('/');
if (parts.length == 2) {
var d = new Date()
d.setMonth(parts[0]-1, parts[1]);
this.rawValue = util.printd('yyyy-mm-dd', d);
}
}
The this.formattedValue == this.rawValue part is a way of testing for an invalid date, if it was value was valid then the rawValue would be in the data format which defaults to yyyy-mm-dd, if its not valid then the invalid value gets copied across. Then we split the value into two and update the current date with the day and month and update the field.
Bruce