$(() => { const date = new Date(); $("#_start_date_1i").val(date.getFullYear()); $("#_start_date_2i").val(date.getMonth() + 1); $("#_start_date_3i").val(date.getDate()); });