|
| - |
Have year on 4 digits from a Date object
Author: Real Gagnon
Author's WebSite: http://tactika.com/realhome/realhome.html
function getYear(d) {
// Y2K-compliant and compatible IE and NS
// d a Date object
// returns a string
return (d=d.getYear())<1000 ? 1900+d : d
}
Posted On: 10-Jul-1999
|
|
|
|
|
|
|
| |