Re: tring to set date using asp and the year value get corrupted
am 15.08.2006 11:17:24 von mmcginty
"alon" wrote in message
news:1155628156.877675.52670@b28g2000cwb.googlegroups.com...
> when I tring to set date (oracle) through my asp page
> the year value get corrupted the date format I am using is 'dd/mm/yyyy'
>
> 2006 become 0006
> 2005 become 0005
Are you using Javascript's Date.getYear() method to generate the value
posted to the server? If so, use getFullYear() instead. Even if not, you
should make sure that your HTML document is posting what you expect, before
looking further.
On the server side, how are you inserting/updating the record? If via
ADODB.Recordset field value assignment, are you using CDate to coerse the
string representation to a date value?
If show us the relevant code, it will be much easier to try to help you.
-Mark
> I hope someone will answer me
>
> Thanks Alon
>