jlmz
11-30-2002, 03:11 AM
:) Hi
I have a form that on a click, I replicate two textfields:
document.evento2.fecinih.value=document.evento2.fecini.value;
document.evento2.fecfinh.value=document.evento2.fecfin.value;
But my problem is that in those textfields, I'm inserting a date in spanish format:
30/05/2002
Is the value in fecini textfield. Ant when I replicate to the fecinih textfield, it looks all right, but isn't it.
The problem is when I take the value of my fecinih value and I note that this value is NaN (or NaM, something like this)
And to try to manipulate this date, is imposible.
Then, when (sometiemes) I can take the value, the format date change and the Date variable takes the next data:
day = month
month = day
I think this is 'cause the server is on usa, so I have the default format to english date format. but I needed on Spanish format.
Coud anyone help me???
Regards
:confused:
I have a form that on a click, I replicate two textfields:
document.evento2.fecinih.value=document.evento2.fecini.value;
document.evento2.fecfinh.value=document.evento2.fecfin.value;
But my problem is that in those textfields, I'm inserting a date in spanish format:
30/05/2002
Is the value in fecini textfield. Ant when I replicate to the fecinih textfield, it looks all right, but isn't it.
The problem is when I take the value of my fecinih value and I note that this value is NaN (or NaM, something like this)
And to try to manipulate this date, is imposible.
Then, when (sometiemes) I can take the value, the format date change and the Date variable takes the next data:
day = month
month = day
I think this is 'cause the server is on usa, so I have the default format to english date format. but I needed on Spanish format.
Coud anyone help me???
Regards
:confused: