I have a date field, which I auto-populate to be the current days date with the following code:
var date=new Date();
var month=date.getMonth()+1;
this.rawValue=month+"/"+date.getDate()+"/"+(date.getYear()-100);
This works fine, but it comes out as 7/20/12 instead of 07/20/2012 like my pattern defines.
Whether or not I write my code to be the correct format, I always get an "Invalid format" error. How can I fix this?