function printDate() {
    today = new Date();
    document.write(today.getFullYear(), '-', today.getMonth()+1, '-', today.getDate());
}