on 01-05-2011 8:52 AM
Hi community,
I would like to preallocate the actual date in the "Initialize"-event.
Format/Pattern: dd.mm.yyyy (05.01.2011)
But I get always a popup with the warning "DATEFROM check failed"?
Afterward I click OK and the date is correct in my DATEFROM-Field.
Why the warning?
Best regards,
Chris
Hi Chris,
Have you done the coding to pre-allocate date in the initialize event of the date field? Can you please share the script?
Thanks & Regards,
Sanoosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I solved it.
The format has to be like this: 2011-01-05
But I don't know why.
var date= new Date();
var dd = date.getDate();
var mm = date.getMonth() + 1;
var yy = date.getYear()-100+2000;
if (dd < 10){
dd = "0" + dd;
}
if (mm < 10){
mm = "0" + mm;
}
this.rawValue = yy + "-" + mm + "-" + dd;
best greets
Chris
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.