سلام از متد های زیر میتونید برای گرفتن تاریخ جاری (date) در زبان برنامه نویسی جاوا اسکریپت(javascript) استفاده کنید .
getFullYear()—-Get the year as a four digit number (yyyy)
getMonth()—————Get the month as a number (0-11)
getDate()——————–Get the day as a number (1-31)
getHours()———————————-Get the hour (0-23)
getMinutes()—————————–Get the minute (0-59)
getSeconds()—————————-Get the second (0-59)
getMilliseconds()—————–Get the millisecond (0-999)