get only year from date in jquery code example Example: get year from date javascript document.write(new Date().getFullYear());