function Y2K(the_date) { if (the_date < 1000) { the_date = the_date + 1900; } return the_date; }