Hi Claudia,
make the date field readonly and place this script in the layout:ready event of the date field:
var months = new Array ("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
var now = new Date();
//var dateFormat = util.printd("yyyy-mm-dd", now); //this works but produces an error message in the warnings window "util undefined"
//this.rawValue = dateFormat;
var yyyy = now.getYear() + 2000 - 100;
var mm = now.getMonth(); mm = months[mm];
var dayNumber = now.getDate();
var dd;
if (dayNumber < 9)
{dd = "0" + dayNumber;}
else {dd = dayNumber;};
if (this.rawValue == null) this.rawValue = yyyy + "-" + mm + "-" + dd;
Regards,
Chris Fourie
www.inteliform.co.za